summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-10-23 17:50:42 +0000
committerReid Kleckner <reid@kleckner.net>2014-10-23 17:50:42 +0000
commit5b2787dfb263574ec94a1993c3f1627f9adf97da (patch)
tree257564efc00f74c2ef8ecb4d5a58fccec3aa4bb7 /llvm/lib
parentaedd994560e8714127a244f57d8a01474082c3f0 (diff)
downloadbcm5719-llvm-5b2787dfb263574ec94a1993c3f1627f9adf97da.tar.gz
bcm5719-llvm-5b2787dfb263574ec94a1993c3f1627f9adf97da.zip
Revert "Don't count inreg params when mangling fastcall functions"
This reverts commit r214981. I'm not sure what I was thinking when I wrote this. Testing with MSVC shows that this function is mangled to '@f@8': int __fastcall f(int a, int b); llvm-svn: 220492
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Mangler.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/IR/Mangler.cpp b/llvm/lib/IR/Mangler.cpp
index 575141aed85..bfed3e39f4e 100644
--- a/llvm/lib/IR/Mangler.cpp
+++ b/llvm/lib/IR/Mangler.cpp
@@ -72,9 +72,6 @@ static void AddFastCallStdCallSuffix(raw_ostream &OS, const Function *F,
unsigned ArgWords = 0;
for (Function::const_arg_iterator AI = F->arg_begin(), AE = F->arg_end();
AI != AE; ++AI) {
- // Skip arguments in registers to handle typical fastcall lowering.
- if (F->getAttributes().hasAttribute(AI->getArgNo() + 1, Attribute::InReg))
- continue;
Type *Ty = AI->getType();
// 'Dereference' type in case of byval or inalloca parameter attribute.
if (AI->hasByValOrInAllocaAttr())
OpenPOWER on IntegriCloud