summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-02 18:51:24 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-02 18:51:24 +0000
commitb68f32f0cfafc65da323511948aef8dedf6eceaa (patch)
tree6df4d21738956e0f1655d86fae76609b79daf759 /llvm/lib
parent1cc17a3e7c779353cde2baa5ffe6d2fd81b50a88 (diff)
downloadbcm5719-llvm-b68f32f0cfafc65da323511948aef8dedf6eceaa.tar.gz
bcm5719-llvm-b68f32f0cfafc65da323511948aef8dedf6eceaa.zip
[CodeView] Use None instead of Void if there is no subprogram
llvm-svn: 271566
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
-rw-r--r--llvm/lib/DebugInfo/CodeView/TypeDumper.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index ba0c7ca80b5..34b322fd178 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -126,7 +126,7 @@ TypeIndex CodeViewDebug::getFuncIdForSubprogram(const DISubprogram *SP) {
// It's possible to ask for the FuncId of a function which doesn't have a
// subprogram: inlining a function with debug info into a function with none.
if (!SP)
- return TypeIndex::Void();
+ return TypeIndex::None();
// Check if we've already translated this subprogram.
auto I = TypeIndices.find(SP);
diff --git a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
index d27ef494202..2080a63d8bc 100644
--- a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
+++ b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
@@ -641,7 +641,7 @@ void CVTypeDumperImpl::visitVirtualBaseClass(TypeLeafKind Leaf,
}
StringRef CVTypeDumper::getTypeName(TypeIndex TI) {
- if (TI.isNoType())
+ if (TI.isNoneType())
return "<no type>";
if (TI.isSimple()) {
@@ -669,7 +669,7 @@ StringRef CVTypeDumper::getTypeName(TypeIndex TI) {
void CVTypeDumper::printTypeIndex(StringRef FieldName, TypeIndex TI) {
StringRef TypeName;
- if (!TI.isNoType())
+ if (!TI.isNoneType())
TypeName = getTypeName(TI);
if (!TypeName.empty())
W->printHex(FieldName, TypeName, TI.getIndex());
OpenPOWER on IntegriCloud