Add -float-abi switch and auto-detection for ARM.

This is based on the implementation that was reverted in
fc8e0c4c20.
This commit is contained in:
David Nadlinger
2013-10-06 03:27:47 +02:00
parent 49697a8bc2
commit 422715fc89
5 changed files with 130 additions and 3 deletions

View File

@@ -635,8 +635,9 @@ int main(int argc, char **argv)
if (global.errors)
fatal();
gTargetMachine = createTargetMachine(mTargetTriple, mArch, mCPU, mAttrs, bitness,
mRelocModel, mCodeModel, codeGenOptLevel(), global.params.symdebug);
gTargetMachine = createTargetMachine(mTargetTriple, mArch, mCPU, mAttrs,
bitness, mFloatABI, mRelocModel, mCodeModel, codeGenOptLevel(),
global.params.symdebug);
{
llvm::Triple triple = llvm::Triple(gTargetMachine->getTargetTriple());