diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-21 14:46:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-21 14:46:17 +0000 |
commit | 2afb0e4d2c8b654d819372b1506cafe772a60166 (patch) | |
tree | a15f677e55879690b8f5083949e97034bdb5d9a5 /tools/llvm-ar | |
parent | 41454cc88bfbf16ae4aa89d4398ac034d98e7883 (diff) |
Add support for addmod to mri scripts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r-- | tools/llvm-ar/llvm-ar.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index fa0842992ec..785cabd08ff 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/tools/llvm-ar/llvm-ar.cpp @@ -178,7 +178,7 @@ static void getMembers() { } namespace { -enum class MRICommand { Create, Save, End, Invalid }; +enum class MRICommand { AddMod, Create, Save, End, Invalid }; } static ArchiveOperation parseMRIScript() { @@ -192,12 +192,16 @@ static ArchiveOperation parseMRIScript() { StringRef CommandStr, Rest; std::tie(CommandStr, Rest) = Line.split(' '); auto Command = StringSwitch<MRICommand>(CommandStr.lower()) + .Case("addmod", MRICommand::AddMod) .Case("create", MRICommand::Create) .Case("save", MRICommand::Save) .Case("end", MRICommand::End) .Default(MRICommand::Invalid); switch (Command) { + case MRICommand::AddMod: + Members.push_back(Rest); + break; case MRICommand::Create: Create = true; if (!ArchiveName.empty()) |