diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-07 22:01:37 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-10 16:15:30 +0200 |
commit | 7c61d77dc58831d3f47753c7454b66a788727e71 (patch) | |
tree | a2c608f34e3c0cffc2a4998e55dc7ce88cfd437b /lib | |
parent | c08b9b80cf40f55e711664c9b4e5ca09f3d94ddd (diff) | |
download | llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.gz llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.bz2 llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.xz |
[Embtk]: Give ability to specify default target ABI at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
(cherry picked from commit 6ab8513df36438aa2c16facc94f306891446e061)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Unix/Host.inc | 8 | ||||
-rw-r--r-- | lib/Support/Windows/Host.inc | 8 |
2 files changed, 16 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() != ""; +} diff --git a/lib/Support/Windows/Host.inc b/lib/Support/Windows/Host.inc index 5c8bcaaf0c..1933bf7e87 100644 --- a/lib/Support/Windows/Host.inc +++ b/lib/Support/Windows/Host.inc @@ -52,3 +52,11 @@ std::string sys::getDefaultTargetHashStyle() { bool sys::hasDefaultTargetHashStyle() { return getDefaultTargetHashStyle() != ""; } + +std::string sys::getDefaultTargetAbi() { + return LLVM_DEFAULT_TARGET_ABI; +} + +bool sys::hasDefaultTargetAbi() { + return getDefaultTargetAbi() != ""; +} |