diff options
author | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2011-03-02 21:36:49 +0000 |
---|---|---|
committer | Tilmann Scheller <tilmann.scheller@googlemail.com> | 2011-03-02 21:36:49 +0000 |
commit | 99cc30c371b7c3706bec267fd35019d035913489 (patch) | |
tree | 7daa383d6658e467defe86c54b1a37ad90638b3b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5f2a4f999d33167f55f55886222219321207393d (diff) | |
download | bcm5719-llvm-99cc30c371b7c3706bec267fd35019d035913489.tar.gz bcm5719-llvm-99cc30c371b7c3706bec267fd35019d035913489.zip |
Revert "Add CC_Win64ThisCall and set it in the necessary places."
This reverts commit 126863.
llvm-svn: 126886
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 9660b071e2c..4ab327712a5 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -211,8 +211,7 @@ void CodeGenFunction::EmitMCountInstrumentation() { void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, llvm::Function *Fn, const FunctionArgList &Args, - SourceLocation StartLoc, - CallingConv CC) { + SourceLocation StartLoc) { const Decl *D = GD.getDecl(); DidCallStackSave = false; @@ -279,7 +278,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, // FIXME: Leaked. // CC info is ignored, hopefully? CurFnInfo = &CGM.getTypes().getFunctionInfo(FnRetTy, Args, - FunctionType::ExtInfo().withCallingConv(CC)); + FunctionType::ExtInfo()); if (RetTy->isVoidType()) { // Void type; nothing to return. @@ -360,7 +359,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn) { if (Stmt *Body = FD->getBody()) BodyRange = Body->getSourceRange(); // Emit the standard function prologue. - StartFunction(GD, ResTy, Fn, Args, BodyRange.getBegin(), CC_Default); + StartFunction(GD, ResTy, Fn, Args, BodyRange.getBegin()); // Generate the body of the function. if (isa<CXXDestructorDecl>(FD)) |