[llvm] r201110 - Fix an old FIXME. LDPO_PIE is available since 2.23, realeased 2012-10-22.

Rafael Espindola rafael.espindola at gmail.com
Mon Feb 10 12:38:38 PST 2014


Author: rafael
Date: Mon Feb 10 14:38:38 2014
New Revision: 201110

URL: http://llvm.org/viewvc/llvm-project?rev=201110&view=rev
Log:
Fix an old FIXME. LDPO_PIE is available since 2.23, realeased 2012-10-22.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=201110&r1=201109&r2=201110&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Mon Feb 10 14:38:38 2014
@@ -153,8 +153,7 @@ ld_plugin_status onload(ld_plugin_tv *tv
         switch (tv->tv_u.tv_val) {
           case LDPO_REL:  // .o
           case LDPO_DYN:  // .so
-          // FIXME: Replace 3 with LDPO_PIE once that is in a released binutils.
-          case 3: // position independent executable
+          case LDPO_PIE:  // position independent executable
             output_type = LTO_CODEGEN_PIC_MODEL_DYNAMIC;
             break;
           case LDPO_EXEC:  // .exe





More information about the llvm-commits mailing list