diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-31 06:18:43 +0000 |
commit | f1179025ae43be2b23d6c936f10063aab622ea2a (patch) | |
tree | 7a211bf9572c18d5275b058538cc6535ed42f848 /llvm/lib/AsmParser/LLParser.cpp | |
parent | c0b52babc7e2f898f551fb031a316a7a662e3472 (diff) | |
download | bcm5719-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.cpp | 3 |
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; |