summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-07 22:01:37 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-13 01:56:54 +0200
commit1da4cf10b52b888ccb9ae43c7d523d075b509331 (patch)
tree47c6ec5b7ba1577d2eee5f46974d1f092eca45b1 /lib/Support/Unix/Host.inc
parent04852c7374686fe061e589fb028768a539c2920b (diff)
downloadllvm-1da4cf10b52b888ccb9ae43c7d523d075b509331.tar.gz
llvm-1da4cf10b52b888ccb9ae43c7d523d075b509331.tar.bz2
llvm-1da4cf10b52b888ccb9ae43c7d523d075b509331.tar.xz
[Embtk]: Give ability to specify default target ABI at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'lib/Support/Unix/Host.inc')
-rw-r--r--lib/Support/Unix/Host.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index 5b55b4f0e9..28828eb83c 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -93,3 +93,11 @@ std::string sys::getDefaultTargetHashStyle() {
bool sys::hasDefaultTargetHashStyle() {
return getDefaultTargetHashStyle() != "";
}
+
+std::string sys::getDefaultTargetAbi() {
+ return LLVM_DEFAULT_TARGET_ABI;
+}
+
+bool sys::hasDefaultTargetAbi() {
+ return getDefaultTargetAbi() != "";
+}