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/TargetInfo.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/TargetInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 14a6e0a5894..2ffc840b9f9 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -942,26 +942,6 @@ public: return false; } - - void SetTargetAttributes(const Decl *D, - llvm::GlobalValue *GV, - CodeGen::CodeGenModule &M) const { - if (M.getContext().Target.isWin64()) { - if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { - const CXXMethodDecl *M = dyn_cast<CXXMethodDecl>(FD); - - if ((M && M->isInstance()) - || dyn_cast<CXXConstructorDecl>(FD) - || dyn_cast<CXXDestructorDecl>(FD)) { - // When using the MSVC Win64 ABI, methods/constructors/destructors - // use the Win64 thiscall calling convention. - llvm::Function *F = cast<llvm::Function>(GV); - F->setCallingConv(llvm::CallingConv::Win64_ThisCall); - } - } - } - } - }; } |