diff options
author | Eric Christopher <echristo@gmail.com> | 2012-12-18 00:31:01 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2012-12-18 00:31:01 +0000 |
commit | 6c583141bf6b7a6b5f8125c1037ecbc089813288 (patch) | |
tree | 7e22b30849a5a15a044a3423d0e8df884992ceea /include/llvm/Support/SourceMgr.h | |
parent | 2318ba16ef4414eec4bc43eaf6e0703c40e1c580 (diff) |
Add support for passing -main-file-name all the way through to
the assembler.
Part of PR14624
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index bc832e0c9e..aaee344755 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -95,6 +95,10 @@ public: return Buffers[i].Buffer; } + unsigned getNumBuffers() const { + return Buffers.size(); + } + SMLoc getParentIncludeLoc(unsigned i) const { assert(i < Buffers.size() && "Invalid Buffer ID!"); return Buffers[i].IncludeLoc; |