AsmPrinter: Stop exposing underlying DIE children list, NFC
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index e7e8267e0ed14eb3ff29011dbbfe17a4310b305c..f56c9b4eb13e7239da058338a9b07f591e0f03f8 100644 (file)
@@ -143,7 +143,7 @@ public:
   void setDebugInfoOffset(unsigned DbgInfoOff) { DebugInfoOffset = DbgInfoOff; }
 
   /// \brief Return true if this compile unit has something to write out.
-  bool hasContent() const { return !UnitDie.getChildren().empty(); }
+  bool hasContent() const { return UnitDie.hasChildren(); }
 
   /// \brief Get string containing language specific context for a global name.
   ///