aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCFastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-23 12:21:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-23 12:21:54 +0000
commitce4c2bc1d66da225d98563d5592c1fda4f18d838 (patch)
tree51d2a6b274290ee430713918bf0e88427fe959bf /llvm/lib/Target/PowerPC/PPCFastISel.cpp
parent41de8027b1f744c1e52f54ca9a1b120c7fda81af (diff)
downloadllvm-ce4c2bc1d66da225d98563d5592c1fda4f18d838.zip
llvm-ce4c2bc1d66da225d98563d5592c1fda4f18d838.tar.gz
llvm-ce4c2bc1d66da225d98563d5592c1fda4f18d838.tar.bz2
Use MCSymbols for FastISel.
The summary is that it moves the mangling earlier and replaces a few calls to .addExternalSymbol with addSym. I originally wanted to replace all the uses of addExternalSymbol with addSym, but noticed it was a lot of work and doesn't need to be done all at once. llvm-svn: 240395
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFastISel.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFastISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFastISel.cpp b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
index a561d5b..fafcd76 100644
--- a/llvm/lib/Target/PowerPC/PPCFastISel.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
@@ -1448,9 +1448,9 @@ bool PPCFastISel::fastLowerCall(CallLoweringInfo &CLI) {
bool IsTailCall = CLI.IsTailCall;
bool IsVarArg = CLI.IsVarArg;
const Value *Callee = CLI.Callee;
- const char *SymName = CLI.SymName;
+ const MCSymbol *Symbol = CLI.Symbol;
- if (!Callee && !SymName)
+ if (!Callee && !Symbol)
return false;
// Allow SelectionDAG isel to handle tail calls.