diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-27 23:47:56 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-27 23:47:56 +0000 |
commit | 6100ae120c5d8e3b61e6c17426c84e0a27b90a5c (patch) | |
tree | 432a663733a08ad859c6267a7de860ac621c8305 /clang/lib/AST/Stmt.cpp | |
parent | fdba32c79f2e2ee7b26fcc52e89d494ba5c51e21 (diff) | |
download | bcm5719-llvm-6100ae120c5d8e3b61e6c17426c84e0a27b90a5c.tar.gz bcm5719-llvm-6100ae120c5d8e3b61e6c17426c84e0a27b90a5c.zip |
[ms-inline asm] Add virtual function, getClobber, that returns a StringRef.
More work towards unifying asm stmt codegen.
llvm-svn: 162712
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 94aec949989..fc66202c4aa 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -321,6 +321,10 @@ bool Stmt::hasImplicitControlFlow() const { } } +StringRef GCCAsmStmt::getClobber(unsigned i) const { + return getClobberStringLiteral(i)->getString(); +} + Expr *GCCAsmStmt::getOutputExpr(unsigned i) { return cast<Expr>(Exprs[i]); } |