diff options
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index b4f10e2..9395b2b 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -509,6 +509,11 @@ unsigned Module::getDwarfVersion() const { return cast<ConstantInt>(Val->getValue())->getZExtValue(); } +bool Module::isDwarf64() const { + auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("DWARF64")); + return Val && cast<ConstantInt>(Val->getValue())->isOne(); +} + unsigned Module::getCodeViewFlag() const { auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); if (!Val) |