summaryrefslogtreecommitdiff
path: root/include/llvm/Target/Mangler.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-11 21:55:20 +0000
committerChris Lattner <sabre@nondot.org>2010-03-11 21:55:20 +0000
commit42263e2e407ab7d1d805e7b41cffd7217134d3b6 (patch)
treee8692ac06acd78e2b5b79758eadf78507860e611 /include/llvm/Target/Mangler.h
parenta257095ebb29fd223be2fdbf86d542c5bdfe05f0 (diff)
downloadllvm-42263e2e407ab7d1d805e7b41cffd7217134d3b6.tar.gz
llvm-42263e2e407ab7d1d805e7b41cffd7217134d3b6.tar.bz2
llvm-42263e2e407ab7d1d805e7b41cffd7217134d3b6.tar.xz
fix a fixme in TargetLoweringObjectFile::getExprForDwarfReference
where we used ot create an MCSymbol for ".". Now emit an assembler temporary label and reference it instead of "." textually. rdar://7739457 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/Mangler.h')
-rw-r--r--include/llvm/Target/Mangler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/Mangler.h b/include/llvm/Target/Mangler.h
index 45cbf9da1e..d8dc8ec8c4 100644
--- a/include/llvm/Target/Mangler.h
+++ b/include/llvm/Target/Mangler.h
@@ -51,6 +51,12 @@ public:
// symbols.
Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(1) {}
+ /// getUniqueID() - Allocate and return a unique ID.
+ /// FIXME: Remove this.
+ unsigned getUniqueID() {
+ return NextAnonGlobalID++;
+ }
+
/// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
/// and the specified global variable's name. If the global variable doesn't
/// have a name, this fills in a unique name for the global.