[llvm-commits] [llvm] r149361 - /llvm/trunk/tools/lto/LTOModule.cpp
Chris Lattner
sabre at nondot.org
Mon Jan 30 22:03:46 PST 2012
Author: lattner
Date: Tue Jan 31 00:03:46 2012
New Revision: 149361
URL: http://llvm.org/viewvc/llvm-project?rev=149361&view=rev
Log:
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.
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=149361&r1=149360&r2=149361&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Tue Jan 31 00:03:46 2012
@@ -190,9 +190,9 @@
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;
}
}
More information about the llvm-commits
mailing list