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 | ce3da6f1d532c909238c14fa67cf955a404a6bc2 (patch) | |
tree | f7a590237af77858b42e0d6bdfeace0677da5cb9 /include | |
parent | 2a2947885aea4e96eb6b776c1558f625506a26d2 (diff) | |
download | llvm-ce3da6f1d532c909238c14fa67cf955a404a6bc2.tar.gz llvm-ce3da6f1d532c909238c14fa67cf955a404a6bc2.tar.bz2 llvm-ce3da6f1d532c909238c14fa67cf955a404a6bc2.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DIBuilder.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 80880094d2..2f07800680 100644 --- a/include/llvm/DIBuilder.h +++ b/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. |