mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Make sure to generate the right kind of MDNode for enum forward declarations.
PR14029, LLVM part. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -331,12 +331,10 @@ namespace llvm {
|
||||
/// @param SizeInBits Member size.
|
||||
/// @param AlignInBits Member alignment.
|
||||
/// @param Elements Enumeration elements.
|
||||
/// @param Flags Flags (e.g. forward decl)
|
||||
DIType createEnumerationType(DIDescriptor Scope, StringRef Name,
|
||||
DIFile File, unsigned LineNumber,
|
||||
uint64_t SizeInBits, uint64_t AlignInBits,
|
||||
DIArray Elements, DIType ClassType,
|
||||
unsigned Flags);
|
||||
DIArray Elements, DIType ClassType);
|
||||
|
||||
/// createSubroutineType - Create subroutine type.
|
||||
/// @param File File in which this subroutine is defined.
|
||||
@@ -357,7 +355,8 @@ namespace llvm {
|
||||
|
||||
/// createForwardDecl - Create a temporary forward-declared type.
|
||||
DIType createForwardDecl(unsigned Tag, StringRef Name, DIDescriptor Scope,
|
||||
DIFile F, unsigned Line, unsigned RuntimeLang = 0);
|
||||
DIFile F, unsigned Line, unsigned RuntimeLang = 0,
|
||||
uint64_t SizeInBits = 0, uint64_t AlignInBits = 0);
|
||||
|
||||
/// retainType - Retain DIType in a module even if it is not referenced
|
||||
/// through debug info anchors.
|
||||
|
||||
Reference in New Issue
Block a user