MemoryBufferRef.cpp 757 B

12345678910111213141516171819
  1. //===- MemoryBufferRef.cpp - Memory Buffer Reference ----------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file implements the MemoryBufferRef interface.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "llvm/Support/MemoryBufferRef.h"
  13. #include "llvm/Support/MemoryBuffer.h"
  14. using namespace llvm;
  15. MemoryBufferRef::MemoryBufferRef(const MemoryBuffer &Buffer)
  16. : Buffer(Buffer.getBuffer()), Identifier(Buffer.getBufferIdentifier()) {}