summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-05 23:55:59 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-13 01:56:54 +0200
commit04852c7374686fe061e589fb028768a539c2920b (patch)
tree26ac74783d38f21e8752e96309ad7f323ca7769f /lib/Support/Unix/Host.inc
parent3267e75c5ddaadc4a3b6e2ce6808f70959678d22 (diff)
downloadllvm-04852c7374686fe061e589fb028768a539c2920b.tar.gz
llvm-04852c7374686fe061e589fb028768a539c2920b.tar.bz2
llvm-04852c7374686fe061e589fb028768a539c2920b.tar.xz
[Embtk] Give ability to specify default linker hash-style 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 028a0c78d7..5b55b4f0e9 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -85,3 +85,11 @@ std::string sys::getDefaultTargetFpu() {
bool sys::hasDefaultTargetFpu() {
return getDefaultTargetFpu() != "";
}
+
+std::string sys::getDefaultTargetHashStyle() {
+ return LLVM_DEFAULT_TARGET_HASHSTYLE;
+}
+
+bool sys::hasDefaultTargetHashStyle() {
+ return getDefaultTargetHashStyle() != "";
+}