From ec99c90ea54806ae59eb8ea7686e201ed7eb0d29 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Dec 2010 01:29:39 +0000 Subject: [PATCH] tidy up git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120644 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCContext.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 60d5c0fae1f..575bc3b2971 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -177,11 +177,11 @@ namespace llvm { bool isValidDwarfFileNumber(unsigned FileNumber); - bool hasDwarfFiles(void) { - return MCDwarfFiles.size() != 0; + bool hasDwarfFiles() const { + return !MCDwarfFiles.empty(); } - bool hasDwarfLines(void) { - return MCLineSectionOrder.size() != 0; + bool hasDwarfLines() const { + return !MCLineSectionOrder.empty(); } const std::vector &getMCDwarfFiles() {