mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Oops. Fix inverted logic in assertion check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -130,7 +130,7 @@ GlobalVariable *DIDescriptor::getGlobalVariableField(unsigned Elt) const {
|
|||||||
/// isBasicType - Return true if the specified tag is legal for
|
/// isBasicType - Return true if the specified tag is legal for
|
||||||
/// DIBasicType.
|
/// DIBasicType.
|
||||||
bool DIDescriptor::isBasicType() const {
|
bool DIDescriptor::isBasicType() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
return Tag == dwarf::DW_TAG_base_type;
|
return Tag == dwarf::DW_TAG_base_type;
|
||||||
@@ -138,7 +138,7 @@ bool DIDescriptor::isBasicType() const {
|
|||||||
|
|
||||||
/// isDerivedType - Return true if the specified tag is legal for DIDerivedType.
|
/// isDerivedType - Return true if the specified tag is legal for DIDerivedType.
|
||||||
bool DIDescriptor::isDerivedType() const {
|
bool DIDescriptor::isDerivedType() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
switch (Tag) {
|
switch (Tag) {
|
||||||
@@ -160,7 +160,7 @@ bool DIDescriptor::isDerivedType() const {
|
|||||||
/// isCompositeType - Return true if the specified tag is legal for
|
/// isCompositeType - Return true if the specified tag is legal for
|
||||||
/// DICompositeType.
|
/// DICompositeType.
|
||||||
bool DIDescriptor::isCompositeType() const {
|
bool DIDescriptor::isCompositeType() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
switch (Tag) {
|
switch (Tag) {
|
||||||
@@ -179,7 +179,7 @@ bool DIDescriptor::isCompositeType() const {
|
|||||||
|
|
||||||
/// isVariable - Return true if the specified tag is legal for DIVariable.
|
/// isVariable - Return true if the specified tag is legal for DIVariable.
|
||||||
bool DIDescriptor::isVariable() const {
|
bool DIDescriptor::isVariable() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
switch (Tag) {
|
switch (Tag) {
|
||||||
@@ -195,7 +195,7 @@ bool DIDescriptor::isVariable() const {
|
|||||||
/// isSubprogram - Return true if the specified tag is legal for
|
/// isSubprogram - Return true if the specified tag is legal for
|
||||||
/// DISubprogram.
|
/// DISubprogram.
|
||||||
bool DIDescriptor::isSubprogram() const {
|
bool DIDescriptor::isSubprogram() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
return Tag == dwarf::DW_TAG_subprogram;
|
return Tag == dwarf::DW_TAG_subprogram;
|
||||||
@@ -204,7 +204,7 @@ bool DIDescriptor::isSubprogram() const {
|
|||||||
/// isGlobalVariable - Return true if the specified tag is legal for
|
/// isGlobalVariable - Return true if the specified tag is legal for
|
||||||
/// DIGlobalVariable.
|
/// DIGlobalVariable.
|
||||||
bool DIDescriptor::isGlobalVariable() const {
|
bool DIDescriptor::isGlobalVariable() const {
|
||||||
assert (isNull() && "Invalid descriptor!");
|
assert (!isNull() && "Invalid descriptor!");
|
||||||
unsigned Tag = getTag();
|
unsigned Tag = getTag();
|
||||||
|
|
||||||
return Tag == dwarf::DW_TAG_variable;
|
return Tag == dwarf::DW_TAG_variable;
|
||||||
|
Reference in New Issue
Block a user