diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2012-10-05 01:49:14 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2012-10-05 01:49:14 +0000 |
| commit | c6c86c43f9fe33e50428d0f08fc6dd44c85fa2e2 (patch) | |
| tree | f335fc7a2a53d245f85a5428c2fed8567d5adf50 /llvm/include | |
| parent | 847ad4460ad0b83fca526a6b6e3ddc5b9068dd8c (diff) | |
| download | bcm5719-llvm-c6c86c43f9fe33e50428d0f08fc6dd44c85fa2e2.tar.gz bcm5719-llvm-c6c86c43f9fe33e50428d0f08fc6dd44c85fa2e2.zip | |
Make sure to generate the right kind of MDNode for enum forward declarations.
PR14029, LLVM part.
llvm-svn: 165288
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/DIBuilder.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/DIBuilder.h b/llvm/include/llvm/DIBuilder.h index 80880094d22..2f078006808 100644 --- a/llvm/include/llvm/DIBuilder.h +++ b/llvm/include/llvm/DIBuilder.h @@ -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. |

