]> granicus.if.org Git - llvm/commitdiff
Restore comment regarding why Reloc::PIC_ can't be PIC
authorSam Clegg <sbc@chromium.org>
Mon, 18 Mar 2019 20:04:34 +0000 (20:04 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 18 Mar 2019 20:04:34 +0000 (20:04 +0000)
The original change back in rL29307 explained this but it was
lost somewhere along the way.

Differential Revision: https://reviews.llvm.org/D59445

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356402 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CodeGen.h

index 3175b29a4dd9a6e61c783730a01f9fea15c8085f..a3f423e558cf2b9f94e51691d5cfabbe01268921 100644 (file)
@@ -18,13 +18,14 @@ namespace llvm {
 
   // Relocation model types.
   namespace Reloc {
-  enum Model { Static, PIC_, DynamicNoPIC, ROPI, RWPI, ROPI_RWPI };
+    // Cannot be named PIC due to collision with -DPIC
+    enum Model { Static, PIC_, DynamicNoPIC, ROPI, RWPI, ROPI_RWPI };
   }
 
   // Code model types.
   namespace CodeModel {
     // Sync changes with CodeGenCWrappers.h.
-  enum Model { Tiny, Small, Kernel, Medium, Large };
+    enum Model { Tiny, Small, Kernel, Medium, Large };
   }
 
   namespace PICLevel {