aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2020-10-08 13:36:33 -0400
committerLouis Dionne <ldionne@apple.com>2020-10-08 14:28:13 -0400
commit504bc07d1afc7bad7b980a977141696ec8298e7e (patch)
tree2da2e091f10cb4a8bd4ad9e5abd035256e6bbde3 /llvm/lib/Analysis/ValueTracking.cpp
parent2b0c5d76a604c8d8b468e1ab6c36f3f495c80127 (diff)
downloadllvm-504bc07d1afc7bad7b980a977141696ec8298e7e.zip
llvm-504bc07d1afc7bad7b980a977141696ec8298e7e.tar.gz
llvm-504bc07d1afc7bad7b980a977141696ec8298e7e.tar.bz2
[runtimes] Use int main(int, char**) consistently in tests
This is needed when running the tests in Freestanding mode, where main() isn't treated specially. In Freestanding, main() doesn't get mangled as extern "C", so whatever runtime we're using fails to find the entry point. One way to solve this problem is to define a symbol alias from __Z4mainiPPc to _main, however this requires all definitions of main() to have the same mangling. Hence this commit.
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions