[PATCH] D29640: [ELF] - Linkerscript - fix handling of OUTPUT_ARCH command.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 07:29:42 PST 2017


ruiu added inline comments.


================
Comment at: ELF/LinkerScript.cpp:1252-1255
+  // Handle cases like i386:x86-64.
+  if (consume(":"))
+    skip();
   expect(")");
----------------
This is too specific to your test case. In general, you want to skip until a matching closing parenthesis.

  expect("(");
  while (!Error && !consume(")")
    skip();


https://reviews.llvm.org/D29640





More information about the llvm-commits mailing list