diff options
| author | 2012-03-18 02:29:38 +0800 | |
|---|---|---|
| committer | 2012-03-26 20:56:25 -0700 | |
| commit | aeb53035febaaa186b3abdac55e21579a8988d84 (patch) | |
| tree | 850277a178064af0a3d4cd6ace2c5c8dac22400e /src/compiler_llvm/compiler_llvm.h | |
| parent | 6920bceb9636910fd82c710946313d6577fbfdfc (diff) | |
Add GetCompilationUnit() to CompilerLLVM.
(cherry picked from commit f12475c0024534a17c0f007e1a8f8ac981932296)
Change-Id: I1579f8e93722e7098657becbb70117c9f6a109a1
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.h')
| -rw-r--r-- | src/compiler_llvm/compiler_llvm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler_llvm/compiler_llvm.h b/src/compiler_llvm/compiler_llvm.h index 7481c8c2e2..562a1d2d01 100644 --- a/src/compiler_llvm/compiler_llvm.h +++ b/src/compiler_llvm/compiler_llvm.h @@ -68,6 +68,14 @@ class CompilerLLVM { return insn_set_; } + size_t GetNumCompilationUnits() const { + return cunits_.size(); + } + + const CompilationUnit* GetCompilationUnit(size_t i) const { + return cunits_[i]; + } + void SetElfFileName(std::string const& filename) { elf_filename_ = filename; } |