summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-15 21:53:03 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-15 21:53:03 +0000
commitec624b2d19a976388490ebc5d8ca81f81fd16602 (patch)
treeb9c2919dab839329bb952732c84c83538c5e2f1d /clang/lib/CodeGen/Mangle.cpp
parent0a2f1bafb638e9f775164cb0e5c0e54c8763c606 (diff)
downloadbcm5719-llvm-ec624b2d19a976388490ebc5d8ca81f81fd16602.tar.gz
bcm5719-llvm-ec624b2d19a976388490ebc5d8ca81f81fd16602.zip
After some discussion, the ABI list settled on a much more sensible mangling
for string literals. llvm-svn: 108464
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index 30ee541c00f..58b0246e363 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -1974,13 +1974,10 @@ void CXXNameMangler::mangleExpression(const Expr *E) {
}
case Expr::StringLiteralClass: {
- // Proposal from David Vandervoorde, 2010.06.30.
- // I've sent a comment off asking whether this needs to also
- // represent the length of the string.
+ // Revised proposal from David Vandervoorde, 2010.07.15.
Out << 'L';
- const ConstantArrayType *T = cast<ConstantArrayType>(E->getType());
- QualType CharTy = T->getElementType().getUnqualifiedType();
- mangleType(CharTy);
+ assert(isa<ConstantArrayType>(E->getType()));
+ mangleType(E->getType());
Out << 'E';
break;
}
OpenPOWER on IntegriCloud