mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Revert "PR14606: debug info imported_module support"
This reverts commit r179836 as it seems to have caused test failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+6
-27
@@ -64,8 +64,7 @@ bool DIDescriptor::Verify() const {
|
||||
DISubrange(DbgNode).Verify() || DIEnumerator(DbgNode).Verify() ||
|
||||
DIObjCProperty(DbgNode).Verify() ||
|
||||
DITemplateTypeParameter(DbgNode).Verify() ||
|
||||
DITemplateValueParameter(DbgNode).Verify() ||
|
||||
DIImportedModule(DbgNode).Verify());
|
||||
DITemplateValueParameter(DbgNode).Verify());
|
||||
}
|
||||
|
||||
static Value *getField(const MDNode *DbgNode, unsigned Elt) {
|
||||
@@ -337,12 +336,6 @@ bool DIDescriptor::isEnumerator() const {
|
||||
bool DIDescriptor::isObjCProperty() const {
|
||||
return DbgNode && getTag() == dwarf::DW_TAG_APPLE_property;
|
||||
}
|
||||
|
||||
/// \brief Return true if the specified tag is DW_TAG_imported_module.
|
||||
bool DIDescriptor::isImportedModule() const {
|
||||
return DbgNode && getTag() == dwarf::DW_TAG_imported_module;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Simple Descriptor Constructors and other Methods
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -425,7 +418,7 @@ bool DICompileUnit::Verify() const {
|
||||
if (N.empty())
|
||||
return false;
|
||||
// It is possible that directory and produce string is empty.
|
||||
return DbgNode->getNumOperands() == 13;
|
||||
return DbgNode->getNumOperands() == 12;
|
||||
}
|
||||
|
||||
/// Verify - Verify that an ObjC property is well formed.
|
||||
@@ -587,11 +580,6 @@ bool DITemplateValueParameter::Verify() const {
|
||||
return isTemplateValueParameter() && DbgNode->getNumOperands() == 8;
|
||||
}
|
||||
|
||||
/// \brief Verify that the imported module descriptor is well formed.
|
||||
bool DIImportedModule::Verify() const {
|
||||
return isImportedModule() && DbgNode->getNumOperands() == 4;
|
||||
}
|
||||
|
||||
/// getOriginalTypeSize - If this type is derived from a base type then
|
||||
/// return base type size.
|
||||
uint64_t DIDerivedType::getOriginalTypeSize() const {
|
||||
@@ -706,7 +694,7 @@ StringRef DIScope::getDirectory() const {
|
||||
}
|
||||
|
||||
DIArray DICompileUnit::getEnumTypes() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 13)
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 12)
|
||||
return DIArray();
|
||||
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(DbgNode->getOperand(7)))
|
||||
@@ -715,7 +703,7 @@ DIArray DICompileUnit::getEnumTypes() const {
|
||||
}
|
||||
|
||||
DIArray DICompileUnit::getRetainedTypes() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 13)
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 12)
|
||||
return DIArray();
|
||||
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(DbgNode->getOperand(8)))
|
||||
@@ -724,7 +712,7 @@ DIArray DICompileUnit::getRetainedTypes() const {
|
||||
}
|
||||
|
||||
DIArray DICompileUnit::getSubprograms() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 13)
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 12)
|
||||
return DIArray();
|
||||
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(DbgNode->getOperand(9)))
|
||||
@@ -734,7 +722,7 @@ DIArray DICompileUnit::getSubprograms() const {
|
||||
|
||||
|
||||
DIArray DICompileUnit::getGlobalVariables() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 13)
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 12)
|
||||
return DIArray();
|
||||
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(DbgNode->getOperand(10)))
|
||||
@@ -742,15 +730,6 @@ DIArray DICompileUnit::getGlobalVariables() const {
|
||||
return DIArray();
|
||||
}
|
||||
|
||||
DIArray DICompileUnit::getImportedModules() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() < 13)
|
||||
return DIArray();
|
||||
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(DbgNode->getOperand(11)))
|
||||
return DIArray(N);
|
||||
return DIArray();
|
||||
}
|
||||
|
||||
/// fixupObjcLikeName - Replace contains special characters used
|
||||
/// in a typical Objective-C names with '.' in a given string.
|
||||
static void fixupObjcLikeName(StringRef Str, SmallVectorImpl<char> &Out) {
|
||||
|
||||
Reference in New Issue
Block a user