summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-10-11 09:17:47 +0000
committerDiana Picus <diana.picus@linaro.org>2016-10-11 09:17:47 +0000
commitc93518db8c29e474abb5b8914a3c8cd301c1bfcc (patch)
tree61412de11e0f73c3aa6e444ada87afb563dde006 /clang/lib/Frontend/CompilerInvocation.cpp
parent750f6a780b9c786ea45398436371b2656bb2cf4d (diff)
downloadbcm5719-llvm-c93518db8c29e474abb5b8914a3c8cd301c1bfcc.tar.gz
bcm5719-llvm-c93518db8c29e474abb5b8914a3c8cd301c1bfcc.zip
[AArch64] Allow label arithmetic with add/sub/cmp
Allow instructions such as 'cmp w0, #(end - start)' by folding the expression into a constant. For ELF, we fold only if the symbols are in the same section. For MachO, we fold if the expression contains only symbols that are not linker visible. Fixes https://llvm.org/bugs/show_bug.cgi?id=18920 Differential Revision: https://reviews.llvm.org/D23834 llvm-svn: 283862
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud