Commit e0094ac8 authored by Jay Foad's avatar Jay Foad
Browse files

[IR] Move trivial accessor Module::getDataLayout into header

parent b85a9b30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ public:
  }

  /// Get the data layout for the module's target platform.
  const DataLayout &getDataLayout() const;
  const DataLayout &getDataLayout() const { return DL; }

  /// Get the target triple which is a string describing the target host.
  /// @returns a string containing the target triple.
+0 −2
Original line number Diff line number Diff line
@@ -395,8 +395,6 @@ void Module::setDataLayout(StringRef Desc) {

void Module::setDataLayout(const DataLayout &Other) { DL = Other; }

const DataLayout &Module::getDataLayout() const { return DL; }

DICompileUnit *Module::debug_compile_units_iterator::operator*() const {
  return cast<DICompileUnit>(CUs->getOperand(Idx));
}