diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-10 04:59:06 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-10 04:59:06 +0000 | 
| commit | 72bbf1734078b1c4094242589ed455279a005f3f (patch) | |
| tree | 4c4273b9c853644e2bd076819ce18146b0aa9170 /clang/lib/CodeGen | |
| parent | 57e673772e5f6e213a918f1d4db0eb39a2b7d90c (diff) | |
| download | bcm5719-llvm-72bbf1734078b1c4094242589ed455279a005f3f.tar.gz bcm5719-llvm-72bbf1734078b1c4094242589ed455279a005f3f.zip  | |
add some helper methods to AsmStmt and add some comments.
llvm-svn: 66521
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index 69ed0803c30..3fd65267771 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -919,8 +919,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {    llvm::SmallVector<TargetInfo::ConstraintInfo, 4> OutputConstraintInfos;    for (unsigned i = 0, e = S.getNumOutputs(); i != e; i++) {     -    std::string OutputConstraint(S.getOutputConstraint(i)->getStrData(), -                                 S.getOutputConstraint(i)->getByteLength()); +    std::string OutputConstraint(S.getOutputConstraint(i));      TargetInfo::ConstraintInfo Info;      bool result = Target.validateOutputConstraint(OutputConstraint.c_str(),  @@ -973,8 +972,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {    for (unsigned i = 0, e = S.getNumInputs(); i != e; i++) {      const Expr *InputExpr = S.getInputExpr(i); -    std::string InputConstraint(S.getInputConstraint(i)->getStrData(), -                                S.getInputConstraint(i)->getByteLength()); +    std::string InputConstraint(S.getInputConstraint(i));      TargetInfo::ConstraintInfo Info;      bool result = Target.validateInputConstraint(InputConstraint.c_str(),  | 

