aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:03:46 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:03:46 +0000
commitca012b8b2341a987f0022adc42424ac8ed26752a (patch)
treeb430da54456a38411fb22bbd20965c451a4d997d /tools
parentb3d58474c83499621ae1e2d76dc87587910abe55 (diff)
downloadexternal_llvm-ca012b8b2341a987f0022adc42424ac8ed26752a.zip
external_llvm-ca012b8b2341a987f0022adc42424ac8ed26752a.tar.gz
external_llvm-ca012b8b2341a987f0022adc42424ac8ed26752a.tar.bz2
update this to ConstantDataArray. There are no tests and this isn't using the preferred functionality for ripping apart strings, so I have no way to test this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index af5a0a6..8ce8cd2 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -190,9 +190,9 @@ bool LTOModule::objcClassNameFromExpression(Constant *c, std::string &name) {
Constant *op = ce->getOperand(0);
if (GlobalVariable *gvn = dyn_cast<GlobalVariable>(op)) {
Constant *cn = gvn->getInitializer();
- if (ConstantArray *ca = dyn_cast<ConstantArray>(cn)) {
+ if (ConstantDataArray *ca = dyn_cast<ConstantDataArray>(cn)) {
if (ca->isCString()) {
- name = ".objc_class_name_" + ca->getAsCString();
+ name = ".objc_class_name_" + ca->getAsCString().str();
return true;
}
}