diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 08:24:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 08:24:36 +0000 |
commit | f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88 (patch) | |
tree | b29880f9afc9d9710cc5c28c341eb667a6ebd246 /lib/Transforms | |
parent | 82a29b6a02324e65847ed99bae84dafb2755ea32 (diff) | |
download | external_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.zip external_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.tar.gz external_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.tar.bz2 |
Switch to getNameStr().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/CodeExtractor.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index 3491b1c..f9d7864 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -73,7 +73,7 @@ namespace { std::string getDescription() const { return std::string((IsArg ? "Argument #" : "Return value #")) - + utostr(Idx) + " of function " + F->getName(); + + utostr(Idx) + " of function " + F->getNameStr(); } }; diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index a019399..2a91b0e 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -307,11 +307,11 @@ Function *CodeExtractor::constructFunction(const Values &inputs, Value *Idx[2]; Idx[0] = Context.getNullValue(Type::Int32Ty); Idx[1] = Context.getConstantInt(Type::Int32Ty, i); - std::string GEPname = "gep_" + inputs[i]->getName(); TerminatorInst *TI = newFunction->begin()->getTerminator(); - GetElementPtrInst *GEP = GetElementPtrInst::Create(AI, Idx, Idx+2, - GEPname, TI); - RewriteVal = new LoadInst(GEP, "load" + GEPname, TI); + GetElementPtrInst *GEP = + GetElementPtrInst::Create(AI, Idx, Idx+2, + "gep_" + inputs[i]->getName(), TI); + RewriteVal = new LoadInst(GEP, "loadgep_" + inputs[i]->getName(), TI); } else RewriteVal = AI++; |