summaryrefslogtreecommitdiff
path: root/include/llvm/Support/SourceMgr.h
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-06-01 13:10:15 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-06-01 13:10:15 +0000
commitdd137903e47fdb5822724baaddae88f119badc86 (patch)
tree51531c32ef74bc1e35f52107db196d04dffaf681 /include/llvm/Support/SourceMgr.h
parentb6fbec3a546fd04bb2e79040db2436b0bd629162 (diff)
downloadllvm-dd137903e47fdb5822724baaddae88f119badc86.tar.gz
llvm-dd137903e47fdb5822724baaddae88f119badc86.tar.bz2
llvm-dd137903e47fdb5822724baaddae88f119badc86.tar.xz
Add new -d option to tblgen. It writes a make(1)-style dependency file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r--include/llvm/Support/SourceMgr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index 2a712e44bd..030db8f4e3 100644
--- a/include/llvm/Support/SourceMgr.h
+++ b/include/llvm/Support/SourceMgr.h
@@ -106,7 +106,9 @@ public:
/// AddIncludeFile - Search for a file with the specified name in the current
/// directory or in one of the IncludeDirs. If no file is found, this returns
/// ~0, otherwise it returns the buffer ID of the stacked file.
- unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc);
+ /// The full path to the included file can be found in IncludedFile.
+ unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
+ std::string &IncludedFile);
/// FindBufferContainingLoc - Return the ID of the buffer containing the
/// specified location, returning -1 if not found.