summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-02-05 02:30:40 +0000
committerChris Lattner <sabre@nondot.org>2012-02-05 02:30:40 +0000
commit9c81833c8dbe3d903d6df71a62c705c06a2f0e9a (patch)
treed659abf7ab037a25dd3384a9f828efec392b5234 /clang/lib/CodeGen/CGRTTI.cpp
parentcf9e8f6968af1e5871b535a06a6bff45de49e4bf (diff)
downloadbcm5719-llvm-9c81833c8dbe3d903d6df71a62c705c06a2f0e9a.tar.gz
bcm5719-llvm-9c81833c8dbe3d903d6df71a62c705c06a2f0e9a.zip
reapply the patches reverted in r149477, which enable ConstantDataArray.
llvm-svn: 149801
Diffstat (limited to 'clang/lib/CodeGen/CGRTTI.cpp')
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 14134930f2c..20918920c10 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -125,7 +125,8 @@ RTTIBuilder::GetAddrOfTypeName(QualType Ty,
// We know that the mangled name of the type starts at index 4 of the
// mangled name of the typename, so we can just index into it in order to
// get the mangled name of the type.
- llvm::Constant *Init = llvm::ConstantArray::get(VMContext, Name.substr(4));
+ llvm::Constant *Init = llvm::ConstantDataArray::getString(VMContext,
+ Name.substr(4));
llvm::GlobalVariable *GV =
CGM.CreateOrReplaceCXXRuntimeVariable(Name, Init->getType(), Linkage);
OpenPOWER on IntegriCloud