mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 20:24:32 +00:00
Add a debug info code generation level to the compile unit metadata
and update everything accordingly. This can be used to conditionalize the amount of output in the backend based on the amount of debug requested/metadata emission scheme by a front end (e.g. clang). Paired with a commit to clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -97,7 +97,9 @@ DICompileUnit DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
|
||||
StringRef Directory,
|
||||
StringRef Producer, bool isOptimized,
|
||||
StringRef Flags, unsigned RunTimeVer,
|
||||
StringRef SplitName) {
|
||||
StringRef SplitName,
|
||||
DebugEmissionKind Kind) {
|
||||
|
||||
assert(((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89) ||
|
||||
(Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
|
||||
"Invalid Language tag");
|
||||
@ -127,7 +129,8 @@ DICompileUnit DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
|
||||
TempSubprograms,
|
||||
TempGVs,
|
||||
TempImportedModules,
|
||||
MDString::get(VMContext, SplitName)
|
||||
MDString::get(VMContext, SplitName),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), Kind)
|
||||
};
|
||||
|
||||
MDNode *CUNode = MDNode::get(VMContext, Elts);
|
||||
|
Reference in New Issue
Block a user