DebugInfo: Rewrite atSameLineAs() as MDLocation::canDiscriminate()
[oota-llvm.git] / include / llvm / IR / DebugInfo.h
index beb5c5769f1c6a0564d47a138b4e2d2f58117979..9237377e2a3b66423cc795361af81a2882b544be 100644 (file)
@@ -810,10 +810,7 @@ public:
   }
   StringRef getFilename() const { return get()->getFilename(); }
   StringRef getDirectory() const { return get()->getDirectory(); }
-  bool atSameLineAs(const DILocation &Other) const {
-    return (getLineNumber() == Other.getLineNumber() &&
-            getFilename() == Other.getFilename());
-  }
+
   /// \brief Get the DWAF discriminator.
   ///
   /// DWARF discriminators are used to distinguish identical file locations for