aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-31 06:13:55 +0000
committerChris Lattner <sabre@nondot.org>2012-01-31 06:13:55 +0000
commitf4a4bec3a0f3c0daa8dc4dcb7295855c104a3830 (patch)
tree6cdbdc63de5a47825b6dfe84e38c2a6b30a3db43 /clang/lib/CodeGen/CodeGenAction.cpp
parent8ea967d0502a685a489bc34787044da8d91ac152 (diff)
downloadllvm-f4a4bec3a0f3c0daa8dc4dcb7295855c104a3830.zip
llvm-f4a4bec3a0f3c0daa8dc4dcb7295855c104a3830.tar.gz
llvm-f4a4bec3a0f3c0daa8dc4dcb7295855c104a3830.tar.bz2
ConstantArray::get() (for strings) is going away, use
ConstantDataArray::getString instead. Many instances of ConstantArray::get() could be moved to use more efficient ConstantDataArray methods that avoid a ton of intermediate Constant*'s for each element (e.g. GetConstantArrayFromStringLiteral). I don't plan on doing this in the short-term though. llvm-svn: 149363
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index eedfc57..2ac9a6f 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -220,18 +220,15 @@ void BackendConsumer::InlineAsmDiagHandler2(const llvm::SMDiagnostic &D,
SourceLocation LocCookie) {
// There are a couple of different kinds of errors we could get here. First,
// we re-format the SMDiagnostic in terms of a clang diagnostic.
-
- // Strip "error: " off the start of the message string.
StringRef Message = D.getMessage();
- if (Message.startswith("error: "))
- Message = Message.substr(7);
// If the SMDiagnostic has an inline asm source location, translate it.
FullSourceLoc Loc;
if (D.getLoc() != SMLoc())
Loc = ConvertBackendLocation(D, Context->getSourceManager());
-
+ // FIXME: Propagate ranges up as well.
+
// If this problem has clang-level source location information, report the
// issue as being an error in the source with a note showing the instantiated
// code.