summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-16 00:17:39 +0000
committerChris Lattner <sabre@nondot.org>2009-09-16 00:17:39 +0000
commitd106abfce717761a0d28fb41c638f3a20fcc03ff (patch)
tree260b8f2c063caf1c20f2ace00f80c8d6d97d2b40 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent4ed397c141687621d83811db3fef55023e3c3623 (diff)
downloadbcm5719-llvm-d106abfce717761a0d28fb41c638f3a20fcc03ff.tar.gz
bcm5719-llvm-d106abfce717761a0d28fb41c638f3a20fcc03ff.zip
Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)
one implementation into its one caller. This eliminates a totally awesome and gratuitous hack where we casted a Function* to GlobalVariable*. llvm-svn: 81967
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index a457421b907..e5f0dba2b97 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -509,13 +509,6 @@ void AsmPrinter::EmitXXStructorList(Constant *List) {
}
}
-/// EmitExternalGlobal - Emit the external reference to a global variable.
-/// Should be overridden if an indirect reference should be used.
-void AsmPrinter::EmitExternalGlobal(const GlobalVariable *GV) {
- O << Mang->getMangledName(GV);
-}
-
-
//===----------------------------------------------------------------------===//
/// LEB 128 number encoding.
OpenPOWER on IntegriCloud