diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 00:37:21 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-19 00:37:21 +0000 |
commit | 3d62bbacb1aa918944f0cc966381f44e13582b4a (patch) | |
tree | 11ef811398091ec13469ff532758c8d0ba7d2008 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | ca929f24699a05cf22d4337278e5fea962799632 (diff) | |
download | llvm-3d62bbacb1aa918944f0cc966381f44e13582b4a.zip llvm-3d62bbacb1aa918944f0cc966381f44e13582b4a.tar.gz llvm-3d62bbacb1aa918944f0cc966381f44e13582b4a.tar.bz2 |
IR: Drop scope from MDTemplateParameter
Follow-up to r229740, which removed `DITemplate*::getContext()` after my
upgrade script revealed that scopes are always `nullptr` for template
parameters. This is the other shoe: drop `scope:` from
`MDTemplateParameter` and its two subclasses. (Note: a bitcode upgrade
would be pointless, since the hierarchy hasn't been moved into place.)
llvm-svn: 229791
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index c3b0dc8..9323819 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1027,7 +1027,6 @@ static void WriteMDTemplateTypeParameter(const MDTemplateTypeParameter *N, SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { Record.push_back(N->isDistinct()); - Record.push_back(VE.getMetadataOrNullID(N->getScope())); Record.push_back(VE.getMetadataOrNullID(N->getRawName())); Record.push_back(VE.getMetadataOrNullID(N->getType())); @@ -1042,7 +1041,6 @@ static void WriteMDTemplateValueParameter(const MDTemplateValueParameter *N, unsigned Abbrev) { Record.push_back(N->isDistinct()); Record.push_back(N->getTag()); - Record.push_back(VE.getMetadataOrNullID(N->getScope())); Record.push_back(VE.getMetadataOrNullID(N->getRawName())); Record.push_back(VE.getMetadataOrNullID(N->getType())); Record.push_back(VE.getMetadataOrNullID(N->getValue())); |