diff options
| author | Justin Hibbits <jrh29@alumni.cwru.edu> | 2014-11-07 04:46:10 +0000 |
|---|---|---|
| committer | Justin Hibbits <jrh29@alumni.cwru.edu> | 2014-11-07 04:46:10 +0000 |
| commit | 771c132e0f0590f2c82f048998d33a62d8c3f636 (patch) | |
| tree | f89d54a4401d126c65b1a64a2a0fda0c2b690cd9 /llvm/test/Linker/Inputs/module-flags-pic-1-b.ll | |
| parent | 97ae14e166caa3342cba36ddcee7250ab13f4f69 (diff) | |
| download | bcm5719-llvm-771c132e0f0590f2c82f048998d33a62d8c3f636.tar.gz bcm5719-llvm-771c132e0f0590f2c82f048998d33a62d8c3f636.zip | |
Add Position-independent Code model Module API.
Summary:
This makes PIC levels a Module flag attribute, which can be queried by the
backend. The flag is named `PIC Level`, and can have a value of:
0 - Backend-default
1 - Small-model (-fpic)
2 - Large-model (-fPIC)
These match the `-pic-level' command line argument for clang, and the value of the
preprocessor macro `__PIC__'.
Test Plan:
New flags tests specific for the 'PIC Level' module flag.
Tests to be added as part of a future commit for PowerPC, which will use this new API.
Reviewers: rafael, echristo
Reviewed By: rafael, echristo
Subscribers: rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D5882
llvm-svn: 221510
Diffstat (limited to 'llvm/test/Linker/Inputs/module-flags-pic-1-b.ll')
| -rw-r--r-- | llvm/test/Linker/Inputs/module-flags-pic-1-b.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/module-flags-pic-1-b.ll b/llvm/test/Linker/Inputs/module-flags-pic-1-b.ll new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/llvm/test/Linker/Inputs/module-flags-pic-1-b.ll @@ -0,0 +1 @@ + |

