summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-05 01:37:29 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-05 01:37:29 +0000
commit3e021be3b6e1ab6d7eccb9e75a22df667e6654fe (patch)
tree8ac1d3d1932a319ba27b6e6b2183118a819ad4eb /llvm
parentec4fb5ba9736c1910b8a1631c46d653172e5a4df (diff)
downloadbcm5719-llvm-3e021be3b6e1ab6d7eccb9e75a22df667e6654fe.tar.gz
bcm5719-llvm-3e021be3b6e1ab6d7eccb9e75a22df667e6654fe.zip
Use StringRef in FastISel API (NFC)
llvm-svn: 283291
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/FastISel.h2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/FastISel.h b/llvm/include/llvm/CodeGen/FastISel.h
index 4bff48de38e..3b97d1e1f29 100644
--- a/llvm/include/llvm/CodeGen/FastISel.h
+++ b/llvm/include/llvm/CodeGen/FastISel.h
@@ -154,7 +154,7 @@ public:
CallLoweringInfo &setCallee(const DataLayout &DL, MCContext &Ctx,
CallingConv::ID CC, Type *ResultTy,
- const char *Target, ArgListTy &&ArgsList,
+ StringRef Target, ArgListTy &&ArgsList,
unsigned FixedArgs = ~0U);
CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultTy,
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 5d02fc32b05..95b4ff7a46e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -707,7 +707,7 @@ bool FastISel::lowerCallOperands(const CallInst *CI, unsigned ArgIdx,
FastISel::CallLoweringInfo &FastISel::CallLoweringInfo::setCallee(
const DataLayout &DL, MCContext &Ctx, CallingConv::ID CC, Type *ResultTy,
- const char *Target, ArgListTy &&ArgsList, unsigned FixedArgs) {
+ StringRef Target, ArgListTy &&ArgsList, unsigned FixedArgs) {
SmallString<32> MangledName;
Mangler::getNameWithPrefix(MangledName, Target, DL);
MCSymbol *Sym = Ctx.getOrCreateSymbol(MangledName);
OpenPOWER on IntegriCloud