Index: tools/llvm-nm/llvm-nm.cpp =================================================================== --- tools/llvm-nm/llvm-nm.cpp +++ tools/llvm-nm/llvm-nm.cpp @@ -1,3 +1,4 @@ + //===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -183,12 +184,7 @@ cl::opt SpecialSyms("special-syms", cl::desc("No-op. Used for GNU compatibility only")); -// FIXME: This option takes exactly two strings and should be allowed anywhere -// on the command line. Such that "llvm-nm -s __TEXT __text foo.o" would work. -// But that does not as the CommandLine Library does not have a way to make -// this work. For now the "-s __TEXT __text" has to be last on the command -// line. -cl::list SegSect("s", cl::Positional, cl::ZeroOrMore, +cl::list SegSect("s", cl::multi_val(2), cl::ZeroOrMore, cl::value_desc("segment section"), cl::Hidden, cl::desc("Dump only symbols from this segment " "and section name, Mach-O only"),