summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-03 06:18:30 +0000
committerChris Lattner <sabre@nondot.org>2010-02-03 06:18:30 +0000
commit082f4840745199cb96f7580902b4b57c9d69ac5c (patch)
treed9cefab667fa6eff06c87033f4e81cce232f025d /llvm/lib/Target/X86/X86TargetObjectFile.cpp
parent78c8eaa4cb7cc4dfa6d0d607e6eee0c43663b306 (diff)
downloadbcm5719-llvm-082f4840745199cb96f7580902b4b57c9d69ac5c.tar.gz
bcm5719-llvm-082f4840745199cb96f7580902b4b57c9d69ac5c.zip
make MachineModuleInfoMachO hold non-const MCSymbol*'s instead
of const ones. non-const ones aren't very useful, because you can't even, say, emit them. llvm-svn: 95205
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.cpp b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
index 41ad153b7f7..a8faafd4b58 100644
--- a/llvm/lib/Target/X86/X86TargetObjectFile.cpp
+++ b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
@@ -35,7 +35,7 @@ getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
// Add information about the stub reference to MachOMMI so that the stub gets
// emitted by the asmprinter.
MCSymbol *Sym = getContext().GetOrCreateSymbol(Name.str());
- const MCSymbol *&StubSym = MachOMMI.getGVStubEntry(Sym);
+ MCSymbol *&StubSym = MachOMMI.getGVStubEntry(Sym);
if (StubSym == 0) {
Name.clear();
Mang->getNameWithPrefix(Name, GV, false);
OpenPOWER on IntegriCloud