src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethod.java
changeset 54669 ad45b3802d4e
parent 50858 2d3e99a72541
equal deleted inserted replaced
54668:0bda2308eded 54669:ad45b3802d4e
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    76     @Override
    76     @Override
    77     public void formatTo(Formatter formatter, int flags, int width, int precision) {
    77     public void formatTo(Formatter formatter, int flags, int width, int precision) {
    78         String base = (flags & ALTERNATE) == ALTERNATE ? getName() : toString();
    78         String base = (flags & ALTERNATE) == ALTERNATE ? getName() : toString();
    79         formatter.format(applyFormattingFlagsAndWidth(base, flags & ~ALTERNATE, width));
    79         formatter.format(applyFormattingFlagsAndWidth(base, flags & ~ALTERNATE, width));
    80     }
    80     }
    81 
       
    82     public JavaMethod asJavaMethod() {
       
    83         return this;
       
    84     }
       
    85 }
    81 }