summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:18:43 +0000
commitf1179025ae43be2b23d6c936f10063aab622ea2a (patch)
tree7a211bf9572c18d5275b058538cc6535ed42f848 /llvm/lib/AsmParser/LLParser.cpp
parentc0b52babc7e2f898f551fb031a316a7a662e3472 (diff)
downloadbcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.tar.gz
bcm5719-llvm-f1179025ae43be2b23d6c936f10063aab622ea2a.zip
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead. llvm-svn: 149365
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index efd48e1c14d..24ef216a6d9 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2018,7 +2018,8 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
}
case lltok::kw_c: // c "foo"
Lex.Lex();
- ID.ConstantVal = ConstantArray::get(Context, Lex.getStrVal(), false);
+ ID.ConstantVal = ConstantDataArray::getString(Context, Lex.getStrVal(),
+ false);
if (ParseToken(lltok::StringConstant, "expected string")) return true;
ID.Kind = ValID::t_Constant;
return false;
OpenPOWER on IntegriCloud