[PATCH] Add PIC-level support to Clang.

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue Oct 14 13:44:38 PDT 2014


================
Comment at: lib/CodeGen/BackendUtil.cpp:428
@@ +427,3 @@
+  switch (LangOpts.PICLevel) {
+  default: break;
+  case 1: PL = llvm::PICLevel::Small; break;
----------------
Don't you want to produce an error if -pic-level is not 1 or 2?

http://reviews.llvm.org/D5400






More information about the llvm-commits mailing list