[llvm] r205080 - Make GetCPISymbol a virtual method.
Tim Northover
tnorthover at apple.com
Sat Mar 29 00:05:00 PDT 2014
Author: tnorthover
Date: Sat Mar 29 02:04:59 2014
New Revision: 205080
URL: http://llvm.org/viewvc/llvm-project?rev=205080&view=rev
Log:
Make GetCPISymbol a virtual method.
ARM64 for iOS is going to want to emit these symbols in a
linker-private style for efficiency, but other targets probably don't
want that behaviour.
Modified:
llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=205080&r1=205079&r2=205080&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Sat Mar 29 02:04:59 2014
@@ -286,6 +286,9 @@ namespace llvm {
llvm_unreachable("EmitInstruction not implemented");
}
+ /// GetCPISymbol - Return the symbol for the specified constant pool entry.
+ virtual MCSymbol *GetCPISymbol(unsigned CPID) const;
+
virtual void EmitFunctionEntryLabel();
virtual void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV);
@@ -329,9 +332,6 @@ namespace llvm {
/// ExternalSymbol.
MCSymbol *GetExternalSymbolSymbol(StringRef Sym) const;
- /// GetCPISymbol - Return the symbol for the specified constant pool entry.
- MCSymbol *GetCPISymbol(unsigned CPID) const;
-
/// GetJTISymbol - Return the symbol for the specified jump table entry.
MCSymbol *GetJTISymbol(unsigned JTID, bool isLinkerPrivate = false) const;
More information about the llvm-commits
mailing list