tidy up
authorChris Lattner <sabre@nondot.org>
Thu, 2 Dec 2010 01:29:39 +0000 (01:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Dec 2010 01:29:39 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120644 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCContext.h

index 60d5c0fae1f3f6f1ada707db89bd56ce7e2fcda1..575bc3b29719ac7e3d992f3614d3c152658c04a4 100644 (file)
@@ -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<MCDwarfFile *> &getMCDwarfFiles() {