Merge hasDotLoc and hasDotFile into hasDotLocAndDotFile since .loc and .file
authorDan Gohman <gohman@apple.com>
Mon, 24 Sep 2007 21:09:53 +0000 (21:09 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 24 Sep 2007 21:09:53 +0000 (21:09 +0000)
aren't really usable without each other.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42274 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h
lib/Target/TargetAsmInfo.cpp

index 5a661a95fda822fcc1ec33d877ea6006fa563706..b4bb8ecbfe0e017a235010e4b80cb237dfdfafaa 100644 (file)
@@ -286,14 +286,11 @@ namespace llvm {
     ///
     bool HasLEB128; // Defaults to false.
     
-    /// hasDotLoc - True if target asm supports .loc directives.
+    /// hasDotLocAndDotFile - True if target asm supports .loc and .file
+    /// directives for emitting debugging information.
     ///
-    bool HasDotLoc; // Defaults to false.
+    bool HasDotLocAndDotFile; // Defaults to false.
     
-    /// HasDotFile - True if target asm supports .file directives.
-    ///
-    bool HasDotFile; // Defaults to false.
-
     /// SupportsDebugInformation - True if target supports emission of debugging
     /// information.
     bool SupportsDebugInformation;
@@ -568,11 +565,8 @@ namespace llvm {
     bool hasLEB128() const {
       return HasLEB128;
     }
-    bool hasDotLoc() const {
-      return HasDotLoc;
-    }
-    bool hasDotFile() const {
-      return HasDotFile;
+    bool hasDotLocAndDotFile() const {
+      return HasDotLocAndDotFile;
     }
     bool doesSupportDebugInformation() const {
       return SupportsDebugInformation;
index 1a3daf0eaa90f3346f85e49277d6d0ab6c2ebb04..e26834414626a72281379416a0a213e9783df680 100644 (file)
@@ -81,8 +81,7 @@ TargetAsmInfo::TargetAsmInfo() :
   AbsoluteDebugSectionOffsets(false),
   AbsoluteEHSectionOffsets(false),
   HasLEB128(false),
-  HasDotLoc(false),
-  HasDotFile(false),
+  HasDotLocAndDotFile(false),
   SupportsDebugInformation(false),
   SupportsExceptionHandling(false),
   DwarfRequiresFrameSection(true),