mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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
This commit is contained in:
parent
b3d58474c8
commit
ca012b8b23
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user