[PATCH] [GNU] Implement --enable-new-dtags/--disable-new-dtags

Rui Ueyama ruiu at google.com
Mon Apr 6 14:38:23 PDT 2015


LGTM


REPOSITORY
  rL LLVM

================
Comment at: lib/ReaderWriter/ELF/OutputELFWriter.h:283
@@ -282,3 +282,3 @@
     Elf_Dyn dyn;
-    dyn.d_tag = DT_RPATH;
+    dyn.d_tag = (_ctx.getEnableNewDtags()) ? DT_RUNPATH : DT_RPATH;
     dyn.d_un.d_val = _dynamicStringTable->addString(*rpath);
----------------
You can remove parentheses around _ctx.getEnableNewDtags().

http://reviews.llvm.org/D8836

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list