diff options
author | Jan Voung <jvoung@chromium.org> | 2013-08-28 14:54:59 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-08-28 14:54:59 -0700 |
commit | fa8d800195480df6eb76f4ea51a18cca9cb5ff88 (patch) | |
tree | 13e3586bbfb7dbf24dbe5a18b6bb0ea9f9cdf0f1 /include/llvm/Support/Threading.h | |
parent | 493d4ab9edba2be18c916d80aaa100a0e51e1f51 (diff) |
Hardcode NaCl in ADT/Triple.h for NaCl only builds (no Darwin/Windows).
Ideally, OS-specific code would be factored out, but
there are currently tons of "if (T.isOSBlah())"
everywhere. E.g., 57 hits for isTargetDarwin, 36 hits for
isOSDarwin, 45 hits for "getOS(", 23 hits for isMacOSX,
etc...
Hacking Triple.h gets us most of the way there.
The X86 code also requires hacking the getEnvironment() to
never return the Darwin enum value. We can't just return
GNU always, because for ARM we want GNUEABIHF.
There is still *some* MachO and COFF code because of
code that handles container-specific relocations without
checking the OS first.
This prunes between 100KB to 200 KB per target (~100KB for
ARM, and ~200KB for x86-64).
See https://codereview.chromium.org/23540008/ for the test.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=1222
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3321
R=dschuff@chromium.org, jfb@chromium.org
Review URL: https://codereview.chromium.org/23453014
Diffstat (limited to 'include/llvm/Support/Threading.h')
0 files changed, 0 insertions, 0 deletions