aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-15 23:18:17 +0000
committerChris Lattner <sabre@nondot.org>2010-01-15 23:18:17 +0000
commit6b04edee11c2bb35a48b1c42f867b4ba8cdfff97 (patch)
tree1e92b2c74a077048932b3ef0b1559c534ad4840b /include
parent11f30b013149a2a4cb0b41288488079a24730fe1 (diff)
downloadexternal_llvm-6b04edee11c2bb35a48b1c42f867b4ba8cdfff97.zip
external_llvm-6b04edee11c2bb35a48b1c42f867b4ba8cdfff97.tar.gz
external_llvm-6b04edee11c2bb35a48b1c42f867b4ba8cdfff97.tar.bz2
add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbol
helper method, use it to simplify some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 9a07e31..bd90238 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -339,6 +339,14 @@ namespace llvm {
/// EmitComments - Pretty-print comments for basic blocks
void EmitComments(const MachineBasicBlock &MBB) const;
+ /// GetGlobalValueSymbol - Return the MCSymbol for the specified global
+ /// value.
+ MCSymbol *GetGlobalValueSymbol(const GlobalValue *GV) const;
+
+ /// GetExternalSymbolSymbol - Return the MCSymbol for the specified
+ /// ExternalSymbol.
+ MCSymbol *GetExternalSymbolSymbol(StringRef Sym) const;
+
/// GetMBBSymbol - Return the MCSymbol corresponding to the specified basic
/// block label.
MCSymbol *GetMBBSymbol(unsigned MBBID) const;