diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 04:41:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 04:41:11 +0000 |
commit | 6e0d1cb30957a636c53158d3089e6fb88348a57a (patch) | |
tree | 1efda7d33cf044d4f99e4a44fdfc6f9328671cc5 /lib/VMCore/Globals.cpp | |
parent | a66297af3048c9f03ae79d1995dc6bdecfbc46c0 (diff) | |
download | external_llvm-6e0d1cb30957a636c53158d3089e6fb88348a57a.zip external_llvm-6e0d1cb30957a636c53158d3089e6fb88348a57a.tar.gz external_llvm-6e0d1cb30957a636c53158d3089e6fb88348a57a.tar.bz2 |
Initial update to VMCore to use Twines for string arguments.
- The only meat here is in Value.{h,cpp} the rest is essential 'const
std::string &' -> 'const Twine &'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Globals.cpp')
-rw-r--r-- | lib/VMCore/Globals.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp index bb750be..aa4c30a 100644 --- a/lib/VMCore/Globals.cpp +++ b/lib/VMCore/Globals.cpp @@ -96,7 +96,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { GlobalVariable::GlobalVariable(LLVMContext &Context, const Type *Ty, bool constant, LinkageTypes Link, - Constant *InitVal, const std::string &Name, + Constant *InitVal, const Twine &Name, bool ThreadLocal, unsigned AddressSpace) : GlobalValue(Context.getPointerType(Ty, AddressSpace), Value::GlobalVariableVal, @@ -114,7 +114,7 @@ GlobalVariable::GlobalVariable(LLVMContext &Context, const Type *Ty, GlobalVariable::GlobalVariable(Module &M, const Type *Ty, bool constant, LinkageTypes Link, Constant *InitVal, - const std::string &Name, + const Twine &Name, GlobalVariable *Before, bool ThreadLocal, unsigned AddressSpace) : GlobalValue(M.getContext().getPointerType(Ty, AddressSpace), |