Have the DbgVariable "isArtificial" and "isObjectPointer" not
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.h
index d5ae4687df57b0249c61b3d427307a4f85d88732..20e232dfc8555e6055a471db9b10c62798f6c803 100644 (file)
@@ -159,8 +159,7 @@ public:
   bool isArtificial()                const {
     if (Var.isArtificial())
       return true;
-    if (Var.getTag() == dwarf::DW_TAG_arg_variable
-        && getType().isArtificial())
+    if (getType().isArtificial())
       return true;
     return false;
   }
@@ -168,8 +167,7 @@ public:
   bool isObjectPointer()             const {
     if (Var.isObjectPointer())
       return true;
-    if (Var.getTag() == dwarf::DW_TAG_arg_variable
-        && getType().isObjectPointer())
+    if (getType().isObjectPointer())
       return true;
     return false;
   }