diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-01 23:35:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-01 23:35:58 +0000 |
commit | b803c66ae4deedfdc62ad63c1d2ed9e2616529b5 (patch) | |
tree | 09d057bb26e6398597a5f6dc9704ea9a9b6c66e4 /lib/Sema/SemaChecking.cpp | |
parent | d78a01906d2a1edb572a99c11f0901beddbcd8c0 (diff) |
move imperative code to declarative definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 4b1f423028..6f04f69d7d 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -182,19 +182,6 @@ Sema::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { if (SemaBuiltinFPClassification(TheCall, 1)) return ExprError(); break; - case Builtin::BI__builtin_return_address: - case Builtin::BI__builtin_frame_address: { - llvm::APSInt Result; - if (SemaBuiltinConstantArg(TheCall, 0, Result)) - return ExprError(); - break; - } - case Builtin::BI__builtin_eh_return_data_regno: { - llvm::APSInt Result; - if (SemaBuiltinConstantArg(TheCall, 0, Result)) - return ExprError(); - break; - } case Builtin::BI__builtin_shufflevector: return SemaBuiltinShuffleVector(TheCall); // TheCall will be freed by the smart pointer here, but that's fine, since @@ -251,15 +238,6 @@ Sema::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { } bool Sema::CheckX86BuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { - switch (BuiltinID) { - case X86::BI__builtin_ia32_palignr128: - case X86::BI__builtin_ia32_palignr: { - llvm::APSInt Result; - if (SemaBuiltinConstantArg(TheCall, 2, Result)) - return true; - break; - } - } return false; } |