================
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