[PATCH] Add Position-independent Code model Module API.
Justin Hibbits
jrh29 at alumni.cwru.edu
Tue Oct 21 07:44:17 PDT 2014
Hi echristo,
This makes PIC levels a Module flag attribute, which can be queried by the
backend. The flag is named `flag_pic`, 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__'.
http://reviews.llvm.org/D5882
Files:
include/llvm/CodeGen/CommandFlags.h
include/llvm/IR/Module.h
include/llvm/Support/CodeGen.h
lib/IR/Module.cpp
tools/llc/llc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5882.15189.patch
Type: text/x-patch
Size: 3129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141021/ed5e6fe6/attachment.bin>
More information about the llvm-commits
mailing list