projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dcaa41
)
[MinGW] [X86] Pass true for the second parameter to StubValueTy for MO_COFFSTUB....
author
Martin Storsjo
<martin@martin.st>
Fri, 31 Aug 2018 08:00:31 +0000
(08:00 +0000)
committer
Martin Storsjo
<martin@martin.st>
Fri, 31 Aug 2018 08:00:31 +0000
(08:00 +0000)
These stubs should never be emitted for internal symbols, and
nothing in AsmPrinter ever actually use this value when producing
the stubs for COFF anyway.
llvm-svn: 341177
llvm/lib/Target/X86/X86MCInstLower.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86MCInstLower.cpp
b/llvm/lib/Target/X86/X86MCInstLower.cpp
index
6daa737
..
921f153
100644
(file)
--- a/
llvm/lib/Target/X86/X86MCInstLower.cpp
+++ b/
llvm/lib/Target/X86/X86MCInstLower.cpp
@@
-170,8
+170,7
@@
MCSymbol *X86MCInstLower::GetSymbolFromOperand(const MachineOperand &MO) const {
if (!StubSym.getPointer()) {
assert(MO.isGlobal() && "Extern symbol not handled yet");
StubSym = MachineModuleInfoImpl::StubValueTy(
- AsmPrinter.getSymbol(MO.getGlobal()),
- !MO.getGlobal()->hasInternalLinkage());
+ AsmPrinter.getSymbol(MO.getGlobal()), true);
}
break;
}