projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded375f
)
Use the triple to figure out if this is a darwin target, not
author
Eric Christopher
<echristo@gmail.com>
Tue, 14 Oct 2014 08:25:26 +0000
(08:25 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Tue, 14 Oct 2014 08:25:26 +0000
(08:25 +0000)
the subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219673
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCMCInstLower.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCMCInstLower.cpp
b/lib/Target/PowerPC/PPCMCInstLower.cpp
index f4984cd649a83b03c9d2e1b19b2a0a67631093f6..a67f8d07b85fe6a6296ba234d66da24eb9a51506 100644
(file)
--- a/
lib/Target/PowerPC/PPCMCInstLower.cpp
+++ b/
lib/Target/PowerPC/PPCMCInstLower.cpp
@@
-40,7
+40,7
@@
static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){
Mangler *Mang = AP.Mang;
const DataLayout *DL = TM.getSubtargetImpl()->getDataLayout();
MCContext &Ctx = AP.OutContext;
- bool isDarwin = T
M.getSubtarget<PPCSubtarget>().is
Darwin();
+ bool isDarwin = T
riple(TM.getTargetTriple()).isOS
Darwin();
SmallString<128> Name;
StringRef Suffix;