eliminate the X86 version of GetGlobalValueSymbol, allowing
authorChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 21:06:41 +0000 (21:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 21:06:41 +0000 (21:06 +0000)
it to be non-virtual and soon disappear.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98387 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.h

index 6187447597c96e366c3fa451e9a9a8d4e78f4f00..0fc7f6093a244b8a26c4cf47147f93222fe03659 100644 (file)
@@ -316,7 +316,7 @@ namespace llvm {
 
     /// GetGlobalValueSymbol - Return the MCSymbol for the specified global
     /// value.
-    virtual MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const;
+    MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const;
 
     /// GetSymbolWithGlobalValueBase - Return the MCSymbol for a symbol with
     /// global value name as its base, with the specified suffix, and where the
index c6439c5f8dd80074dabdcde41411e0cdc00d0869..286c0eb57e694ddbbb6ff90cfd8753e082fe7539 100644 (file)
@@ -53,10 +53,6 @@ void X86AsmPrinter::PrintPICBaseSymbol() const {
                                                                     OutContext);
 }
 
-MCSymbol *X86AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const {
-  return Mang->getSymbol(GV);
-}
-
 /// runOnMachineFunction - Emit the function body.
 ///
 bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
index 039214ac293074aff5198ac319952d09735239c9..eb996a7832b9872c2297507d5aaa911a95901c65 100644 (file)
@@ -61,7 +61,6 @@ class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter {
   virtual void EmitInstruction(const MachineInstr *MI);
   
   void printSymbolOperand(const MachineOperand &MO);
-  virtual MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const;
 
   // These methods are used by the tablegen'erated instruction printer.
   void printOperand(const MachineInstr *MI, unsigned OpNo,