mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Update language check. Do not ignore DW_LANG_Python.
Patch by Joe Groff! llvm-svn: 147781
This commit is contained in:
parent
48d318717f
commit
bcde69f19c
@ -76,7 +76,8 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
|
||||
StringRef Directory, StringRef Producer,
|
||||
bool isOptimized, StringRef Flags,
|
||||
unsigned RunTimeVer) {
|
||||
assert (Lang <= dwarf::DW_LANG_D && Lang >= dwarf::DW_LANG_C89
|
||||
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");
|
||||
assert (!Filename.empty()
|
||||
&& "Unable to create compile unit without filename");
|
||||
|
Loading…
Reference in New Issue
Block a user