summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-21 17:02:27 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-21 17:02:27 +0000
commit5e80ced3f68a2bf1dfe5c6bfb0eb23cd015ac15e (patch)
treeed7dc08d73de04da87b3212ba0194337275beb60 /clang/lib/Sema/SemaStmtAsm.cpp
parentb84cc6cfa3c674fc624c02184919b352874dfe2c (diff)
downloadbcm5719-llvm-5e80ced3f68a2bf1dfe5c6bfb0eb23cd015ac15e.tar.gz
bcm5719-llvm-5e80ced3f68a2bf1dfe5c6bfb0eb23cd015ac15e.zip
[ms-inline asm] Append identifier for better debugging.
llvm-svn: 162289
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index a09bdc75bdb..b4b91ec445a 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/lib/Sema/SemaStmtAsm.cpp
@@ -446,6 +446,7 @@ static void patchMSAsmStrings(Sema &SemaRef, bool &IsSimple,
// TODO: Patch identifier with valid operand. One potential idea is to
// probe the backend with type information to guess the possible
// operand.
+ Asm += getSpelling(SemaRef, AsmToks[i]);
break;
}
}
OpenPOWER on IntegriCloud