aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-03 01:47:14 +0000
committerChris Lattner <sabre@nondot.org>2006-03-03 01:47:14 +0000
commitd9f5d90af198eff5fa78e313d019bd1770db7f03 (patch)
tree1bae86600df76be6c02ad983dc547837af87032f /utils/TableGen/TableGen.cpp
parent21959390c11bed0ee199756f051bf9401fc5a699 (diff)
add support for multiple include directories
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 3f8547d599..1007e1baaf 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -82,14 +82,14 @@ namespace {
cl::opt<std::string>
InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"));
- cl::opt<std::string>
- IncludeDir("I", cl::desc("Directory of include files"),
- cl::value_desc("directory"), cl::init(""));
+ cl::list<std::string>
+ IncludeDirs("I", cl::desc("Directory of include files"),
+ cl::value_desc("directory"));
}
namespace llvm {
void ParseFile(const std::string &Filename,
- const std::string &IncludeDir);
+ const std::vector<std::string> &IncludeDirs);
}
RecordKeeper llvm::Records;
@@ -420,7 +420,7 @@ static void ParseMachineCode() {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv);
- ParseFile(InputFilename, IncludeDir);
+ ParseFile(InputFilename, IncludeDirs);
std::ostream *Out = &std::cout;
if (OutputFilename != "-") {