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 07:39:12 +02:00
parent 49697a8bc2
commit 422715fc89
5 changed files with 130 additions and 3 deletions
+10
View File
@@ -27,6 +27,15 @@ namespace ExplicitBitness {
};
}
namespace FloatABI {
enum Type {
Default,
Soft,
SoftFP,
Hard
};
}
namespace llvm { class TargetMachine; }
/**
@@ -41,6 +50,7 @@ llvm::TargetMachine* createTargetMachine(
std::string cpu,
std::vector<std::string> attrs,
ExplicitBitness::Type bitness,
FloatABI::Type floatABI,
llvm::Reloc::Model relocModel,
llvm::CodeModel::Model codeModel,
llvm::CodeGenOpt::Level codeGenOptLevel,