diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-03 06:18:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-03 06:18:30 +0000 |
commit | d269a6e460a71a6c5c361a26c56c91fdb9486f45 (patch) | |
tree | d64ca1a631fb70b9e9e54b5d13256e6fa19848ce /lib/Target/X86/X86TargetObjectFile.cpp | |
parent | 5669e3009761dff20b67e18a382c334041887928 (diff) | |
download | llvm-d269a6e460a71a6c5c361a26c56c91fdb9486f45.tar.gz llvm-d269a6e460a71a6c5c361a26c56c91fdb9486f45.tar.bz2 llvm-d269a6e460a71a6c5c361a26c56c91fdb9486f45.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetObjectFile.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetObjectFile.cpp b/lib/Target/X86/X86TargetObjectFile.cpp index 41ad153b7f..a8faafd4b5 100644 --- a/lib/Target/X86/X86TargetObjectFile.cpp +++ b/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); |