From 72252732c8d31dc6af78e82ba9f9467d77152ecc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 24 Sep 2007 21:09:53 +0000 Subject: [PATCH] Merge hasDotLoc and hasDotFile into hasDotLocAndDotFile since .loc and .file 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 | 16 +++++----------- lib/Target/TargetAsmInfo.cpp | 3 +-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 5a661a95fda..b4bb8ecbfe0 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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; diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 1a3daf0eaa9..e2683441462 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -81,8 +81,7 @@ TargetAsmInfo::TargetAsmInfo() : AbsoluteDebugSectionOffsets(false), AbsoluteEHSectionOffsets(false), HasLEB128(false), - HasDotLoc(false), - HasDotFile(false), + HasDotLocAndDotFile(false), SupportsDebugInformation(false), SupportsExceptionHandling(false), DwarfRequiresFrameSection(true),