diff options
author | Eric Beckmann <ecbeckmann@google.com> | 2017-08-19 00:37:41 +0000 |
---|---|---|
committer | Eric Beckmann <ecbeckmann@google.com> | 2017-08-19 00:37:41 +0000 |
commit | 91d8af53863aec05c28b38b81c69492d6276e98e (patch) | |
tree | e5ee91a83302bd2ee8c23a5a27aa270041178ea8 /llvm/tools/llvm-mt/llvm-mt.cpp | |
parent | 42479e02caccc8716418a10955371363105d1bf6 (diff) | |
download | bcm5719-llvm-91d8af53863aec05c28b38b81c69492d6276e98e.tar.gz bcm5719-llvm-91d8af53863aec05c28b38b81c69492d6276e98e.zip |
llvm-mt: Merge manifest namespaces.
mt.exe performs a tree merge where certain element nodes are combined
into one. This introduces the possibility of xml namespaces conflicting
with each other. The original mt.exe has a hierarchy whereby certain
namespace names can override others, and nodes that would then end up in
ambigious namespaces have their namespaces explicitly defined. This
namespace handles this merging process.
llvm-svn: 311215
Diffstat (limited to 'llvm/tools/llvm-mt/llvm-mt.cpp')
-rw-r--r-- | llvm/tools/llvm-mt/llvm-mt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mt/llvm-mt.cpp b/llvm/tools/llvm-mt/llvm-mt.cpp index 69af6a61c48..9bc9d332ebf 100644 --- a/llvm/tools/llvm-mt/llvm-mt.cpp +++ b/llvm/tools/llvm-mt/llvm-mt.cpp @@ -102,6 +102,9 @@ int main(int argc, const char **argv) { ArrayRef<const char *> ArgsArr = makeArrayRef(argv + 1, argc); opt::InputArgList InputArgs = T.ParseArgs(ArgsArr, MAI, MAC); + for (auto *Arg : InputArgs.filtered(OPT_INPUT)) + reportError(Twine("invalid option ") + Arg->getSpelling()); + for (auto &Arg : InputArgs) { if (Arg->getOption().matches(OPT_unsupported)) { outs() << "llvm-mt: ignoring unsupported '" << Arg->getOption().getName() @@ -129,7 +132,7 @@ int main(int argc, const char **argv) { reportError("no output file specified"); } - WindowsManifestMerger Merger; + windows_manifest::WindowsManifestMerger Merger; for (const auto &File : InputFiles) { ErrorOr<std::unique_ptr<MemoryBuffer>> ManifestOrErr = |