Skip to content

Commit

Permalink
IR: Add a setDWOId() method to DICompileUnit.
Browse files Browse the repository at this point in the history
Tested via clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248342 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
adrian-prantl committed Sep 22, 2015
1 parent c3ff2ab commit 02aa134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/llvm/IR/DebugInfoMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@ class DICompileUnit : public DIScope {
return cast_or_null<MDTuple>(getRawImportedEntities());
}
uint64_t getDWOId() const { return DWOId; }
void setDWOId(uint64_t DwoId) { DWOId = DwoId; }

MDString *getRawProducer() const { return getOperandAs<MDString>(1); }
MDString *getRawFlags() const { return getOperandAs<MDString>(2); }
Expand Down

0 comments on commit 02aa134

Please sign in to comment.