aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorTilmann Scheller <tilmann.scheller@googlemail.com>2011-03-02 21:36:49 +0000
committerTilmann Scheller <tilmann.scheller@googlemail.com>2011-03-02 21:36:49 +0000
commit9c6082fe89c61af697f017aa80937581cc2128d8 (patch)
treea584f24f02bbaa5188567583995a02ea6ece0ee2 /lib/CodeGen/TargetInfo.cpp
parent9a7e09d82f739c8fd1b6c28787397d698515a871 (diff)
Revert "Add CC_Win64ThisCall and set it in the necessary places."
This reverts commit 126863. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r--lib/CodeGen/TargetInfo.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index 14a6e0a589..2ffc840b9f 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/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);
- }
- }
- }
- }
-
};
}