reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/MemoryBuffer.h
  109   getMemBuffer(StringRef InputData, StringRef BufferName = "",

References

lib/AsmParser/Parser.cpp
  150   std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
  167     std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
  179   std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm);
lib/CodeGen/MIRParser/MIRParser.cpp
  424       MemoryBuffer::getMemBuffer(BlockStr, "",/*RequiresNullTerminator=*/false),
  448       MemoryBuffer::getMemBuffer(InsnStr, "", /*RequiresNullTerminator=*/false),
lib/FuzzMutate/FuzzerCLI.cpp
  176   auto Buffer = MemoryBuffer::getMemBuffer(
lib/IR/Core.cpp
 4028   return wrap(MemoryBuffer::getMemBuffer(StringRef(InputData, InputDataLength),
lib/LTO/LTOModule.cpp
  242   return MemoryBuffer::getMemBuffer(StringRef(startPtr, length), name, false);
lib/Object/ModuleSymbolTable.cpp
  107   std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer(InlineAsm));
lib/Object/Object.cpp
   80   return wrap(llvm::MemoryBuffer::getMemBuffer(
lib/Support/MemoryBuffer.cpp
  121   return std::unique_ptr<MemoryBuffer>(getMemBuffer(
lib/Support/VirtualFileSystem.cpp
  614     return llvm::MemoryBuffer::getMemBuffer(
  800                  llvm::MemoryBuffer::getMemBuffer(
lib/Support/YAMLTraits.cpp
  716   auto Buffer = MemoryBuffer::getMemBuffer(S, "", false);
tools/clang/lib/Basic/SourceManager.cpp
  146         llvm::MemoryBuffer::getMemBuffer("", ContentsEntry->getName())
  505         llvm::MemoryBuffer::getMemBuffer("<<<INVALID BUFFER>>");
 2177       llvm::MemoryBuffer::getMemBuffer(Content, FileName,
tools/clang/lib/Frontend/ChainedIncludesSource.cpp
  179         Bufs.push_back(llvm::MemoryBuffer::getMemBuffer(SB->getBuffer()));
tools/clang/lib/Frontend/CompilerInstance.cpp
 1231           llvm::MemoryBuffer::getMemBuffer(InferredModuleMapContent);
 2026         llvm::MemoryBuffer::getMemBuffer(NullTerminatedSource.c_str()));
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  755     auto Buf = llvm::MemoryBuffer::getMemBuffer(Storage.asMemory().Data);
tools/clang/lib/Parse/ParseStmtAsm.cpp
  599       llvm::MemoryBuffer::getMemBuffer(AsmString, "<MS inline asm>");
tools/clang/lib/Serialization/ASTReader.cpp
 1459       return llvm::MemoryBuffer::getMemBuffer(Blob.drop_back(1), Name, true);
tools/clang/lib/Tooling/Core/Replacement.cpp
  593       "<stdin>", 0, llvm::MemoryBuffer::getMemBuffer(Code, "<stdin>"));
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
  246       llvm::MemoryBuffer::getMemBuffer(*Contents, Entry->getName(),
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
  218       llvm::MemoryBuffer::getMemBuffer(DatabaseString));
tools/clang/lib/Tooling/Tooling.cpp
  212                               llvm::MemoryBuffer::getMemBuffer(
  218         llvm::MemoryBuffer::getMemBuffer(FilenameWithContent.second));
  353         llvm::MemoryBuffer::getMemBuffer(It.getValue());
  460             llvm::MemoryBuffer::getMemBuffer(MappedFile.second));
  526                 llvm::MemoryBuffer::getMemBuffer(MappedFile.second));
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
   42       llvm::MemoryBuffer::getMemBuffer(S);
tools/clang/tools/extra/clangd/Preamble.cpp
   97       llvm::MemoryBuffer::getMemBuffer(Inputs.Contents, FileName);
tools/clang/tools/extra/clangd/SourceCode.cpp
 1017   auto LHS = llvm::MemoryBuffer::getMemBuffer(Code);
 1020   auto RHS = llvm::MemoryBuffer::getMemBuffer(InitialCode);
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp
   55         llvm::MemoryBuffer::getMemBuffer(FS.Files[MainFile], MainFile), VFS,
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
  102                                 llvm::MemoryBuffer::getMemBuffer(Content));
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
  277                                 llvm::MemoryBuffer::getMemBuffer(HeaderCode));
  279                                 llvm::MemoryBuffer::getMemBuffer(MainCode));
 1039                               llvm::MemoryBuffer::getMemBuffer("class X {};"));
 1058                               llvm::MemoryBuffer::getMemBuffer("class X {};"));
 1078                               llvm::MemoryBuffer::getMemBuffer("class X {};"));
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
   62     MemFS->addFile(Path, 0, llvm::MemoryBuffer::getMemBuffer("", Path));
tools/clang/tools/extra/unittests/clang-include-fixer/IncludeFixerTest.cpp
   39                               llvm::MemoryBuffer::getMemBuffer(Code));
   42                               llvm::MemoryBuffer::getMemBuffer("\n"));
   44                               llvm::MemoryBuffer::getMemBuffer("\n"));
   46                               llvm::MemoryBuffer::getMemBuffer("\n"));
   48                               llvm::MemoryBuffer::getMemBuffer("bar b;"));
tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
   90         IncHeader, 0, llvm::MemoryBuffer::getMemBuffer(IncHeaderCode));
   92                                 llvm::MemoryBuffer::getMemBuffer(InternalCode));
  104                                 llvm::MemoryBuffer::getMemBuffer(HeaderCode));
  118         DirtyHeader, 0, llvm::MemoryBuffer::getMemBuffer(DirtyHeaderContent));
  126                                 llvm::MemoryBuffer::getMemBuffer(Content));
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
  125                               llvm::MemoryBuffer::getMemBuffer(Code));
  129         llvm::MemoryBuffer::getMemBuffer(FileContent.second));
tools/clang/unittests/AST/ASTImporterFixtures.cpp
   38                                    llvm::MemoryBuffer::getMemBuffer(Code));
tools/clang/unittests/AST/CommentLexer.cpp
   62   std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source);
tools/clang/unittests/AST/CommentParser.cpp
   55   std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source);
tools/clang/unittests/AST/ExternalASTSourceTest.cpp
   53       "test.cc", MemoryBuffer::getMemBuffer(FileContents).release());
tools/clang/unittests/Basic/SourceManagerTest.cpp
   57       llvm::MemoryBuffer::getMemBuffer(source);
  111       llvm::MemoryBuffer::getMemBuffer(Source);
  164       llvm::MemoryBuffer::getMemBuffer(header);
  166       llvm::MemoryBuffer::getMemBuffer(Source);
  260       llvm::MemoryBuffer::getMemBuffer(header);
  262       llvm::MemoryBuffer::getMemBuffer(main);
  379       llvm::MemoryBuffer::getMemBuffer(header);
  381       llvm::MemoryBuffer::getMemBuffer(main);
tools/clang/unittests/CodeGen/BufferSourceTest.cpp
   74         llvm::MemoryBuffer::getMemBuffer(TestProgram), clang::SrcMgr::C_User));
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp
  294         llvm::MemoryBuffer::getMemBuffer(TestProgram), clang::SrcMgr::C_User));
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp
   63         llvm::MemoryBuffer::getMemBuffer("    "), clang::SrcMgr::C_User));
   69         llvm::MemoryBuffer::getMemBuffer(code), clang::SrcMgr::C_User);
tools/clang/unittests/CodeGen/TBAAMetadataTest.cpp
   71         llvm::MemoryBuffer::getMemBuffer(TestProgram), clang::SrcMgr::C_User));
tools/clang/unittests/Driver/DistroTest.cpp
   30       llvm::MemoryBuffer::getMemBuffer("jessie/sid\n"));
   32       llvm::MemoryBuffer::getMemBuffer("DISTRIB_ID=Ubuntu\n"
   37       llvm::MemoryBuffer::getMemBuffer("NAME=\"Ubuntu\"\n"
   57       llvm::MemoryBuffer::getMemBuffer("stretch/sid\n"));
   59       llvm::MemoryBuffer::getMemBuffer("DISTRIB_ID=Ubuntu\n"
   64       llvm::MemoryBuffer::getMemBuffer("NAME=\"Ubuntu\"\n"
   89       llvm::MemoryBuffer::getMemBuffer("cpe:/o:fedoraproject:fedora:25\n"));
   92       llvm::MemoryBuffer::getMemBuffer("Fedora release 25 (Twenty Five)\n"));
   94       llvm::MemoryBuffer::getMemBuffer("Fedora release 25 (Twenty Five)\n"));
   96       llvm::MemoryBuffer::getMemBuffer("Fedora release 25 (Twenty Five)\n"));
   98       llvm::MemoryBuffer::getMemBuffer("NAME=Fedora\n"
  122       llvm::MemoryBuffer::getMemBuffer("cpe:/o:centos:centos:7\n"));
  125       llvm::MemoryBuffer::getMemBuffer("CentOS Linux release 7.2.1511 (Core) \n"));
  127       llvm::MemoryBuffer::getMemBuffer("CentOS Linux release 7.2.1511 (Core) \n"));
  129       llvm::MemoryBuffer::getMemBuffer("CentOS Linux release 7.2.1511 (Core) \n"));
  131       llvm::MemoryBuffer::getMemBuffer("Derived from Red Hat Enterprise Linux 7.2 (Source)\n"));
  133       llvm::MemoryBuffer::getMemBuffer("NAME=\"CentOS Linux\"\n"
  161       llvm::MemoryBuffer::getMemBuffer("openSUSE 42.1 (x86_64)\n"
  166       llvm::MemoryBuffer::getMemBuffer("NAME=\"openSUSE Leap\"\n"
  187       llvm::MemoryBuffer::getMemBuffer("openSUSE 13.2 (x86_64)\n"
  192       llvm::MemoryBuffer::getMemBuffer("NAME=openSUSE\n"
  213       llvm::MemoryBuffer::getMemBuffer("SUSE Linux Enterprise Server 10 (x86_64)\n"
  217       llvm::MemoryBuffer::getMemBuffer("LSB_VERSION=\"core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64\"\n"));
  232                                  llvm::MemoryBuffer::getMemBuffer("8.6\n"));
  234       llvm::MemoryBuffer::getMemBuffer("PRETTY_NAME=\"Debian GNU/Linux 8 (jessie)\"\n"
  253                                  llvm::MemoryBuffer::getMemBuffer("stretch/sid\n"));
  255       llvm::MemoryBuffer::getMemBuffer("PRETTY_NAME=\"Debian GNU/Linux stretch/sid\"\n"
  274                                  llvm::MemoryBuffer::getMemBuffer(""));
  276       llvm::MemoryBuffer::getMemBuffer("NAME=\"Exherbo\"\n"
  296                                  llvm::MemoryBuffer::getMemBuffer(""));
  298       llvm::MemoryBuffer::getMemBuffer("NAME=\"Arch Linux\"\n"
  319       llvm::MemoryBuffer::getMemBuffer("Gentoo Base System release 2.6"));
  322       llvm::MemoryBuffer::getMemBuffer(
tools/clang/unittests/Driver/ToolChainTest.cpp
   60                                 llvm::MemoryBuffer::getMemBuffer("\n"));
  100                                 llvm::MemoryBuffer::getMemBuffer("\n"));
tools/clang/unittests/Format/FormatTest.cpp
14281                  llvm::MemoryBuffer::getMemBuffer("BasedOnStyle: LLVM")));
14283       FS.addFile("/a/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
14290       FS.addFile("/b/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
14303                          llvm::MemoryBuffer::getMemBuffer("IndentWidth: 2")));
14316                  llvm::MemoryBuffer::getMemBuffer("BasedOnStyle: Google")));
14318                          llvm::MemoryBuffer::getMemBuffer("int i;")));
14341                  llvm::MemoryBuffer::getMemBuffer("BasedOnStyle: LLVM\n"
14344       FS.addFile("/d/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
tools/clang/unittests/Frontend/CodeGenActionTest.cpp
   47       MemoryBuffer::getMemBuffer("").release());
tools/clang/unittests/Frontend/FrontendActionTest.cpp
   86       MemoryBuffer::getMemBuffer("int main() { float x; }").release());
  106       MemoryBuffer::getMemBuffer("int main() { float x; }").release());
  127     "test.cc", MemoryBuffer::getMemBuffer(
  179       MemoryBuffer::getMemBuffer("int main() { float x; }").release());
  238       "test.cc", MemoryBuffer::getMemBuffer("void fooo();\n"
  272         MemoryBuffer::getMemBuffer("int foo(void) { return 1; }\n").release());
tools/clang/unittests/Frontend/OutputStreamTest.cpp
   27       "test.cc", MemoryBuffer::getMemBuffer("").release());
   51       "test.cc", MemoryBuffer::getMemBuffer("invalid").release());
   80         "test.cc", MemoryBuffer::getMemBuffer("invalid").release());
tools/clang/unittests/Lex/HeaderMapTest.cpp
   46     return MemoryBuffer::getMemBuffer(
tools/clang/unittests/Lex/HeaderSearchTest.cpp
   40     VFS->addFile(Dir, 0, llvm::MemoryBuffer::getMemBuffer(""), /*User=*/None,
tools/clang/unittests/Lex/LexerTest.cpp
   51         llvm::MemoryBuffer::getMemBuffer(Source);
tools/clang/unittests/Lex/PPCallbacksTest.cpp
  144                                 llvm::MemoryBuffer::getMemBuffer("\n"));
  176         llvm::MemoryBuffer::getMemBuffer(SourceText);
  195         llvm::MemoryBuffer::getMemBuffer(SourceText);
  234         llvm::MemoryBuffer::getMemBuffer(SourceText);
  265         llvm::MemoryBuffer::getMemBuffer(SourceText, "test.cl");
tools/clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
   73       llvm::MemoryBuffer::getMemBuffer(source);
tools/clang/unittests/Serialization/InMemoryModuleCacheTest.cpp
   21   return MemoryBuffer::getMemBuffer(StringRef(Bytes.data(), Bytes.size()), "",
tools/clang/unittests/Tooling/DependencyScannerTest.cpp
   90   VFS->addFile(HeaderPath, 0, llvm::MemoryBuffer::getMemBuffer("\n"));
   93                llvm::MemoryBuffer::getMemBuffer(
  139                llvm::MemoryBuffer::getMemBuffer("#pragma once\n"));
  142                llvm::MemoryBuffer::getMemBuffer(
  145                llvm::MemoryBuffer::getMemBuffer(
  176   VFS->addFile(HeaderPath, 0, llvm::MemoryBuffer::getMemBuffer("\n"));
  180       llvm::MemoryBuffer::getMemBuffer("#if __has_include(\"header.h\") && "
tools/clang/unittests/Tooling/RefactoringTest.cpp
 1045   EXPECT_TRUE(VFS->addFile(Path1, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1046   EXPECT_TRUE(VFS->addFile(Path2, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1066   EXPECT_TRUE(VFS->addFile(Path1, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1067   EXPECT_TRUE(VFS->addFile(Path2, 0, llvm::MemoryBuffer::getMemBuffer("")));
tools/clang/unittests/Tooling/RewriterTestContext.h
   56         llvm::MemoryBuffer::getMemBuffer(Content);
tools/clang/unittests/Tooling/ToolingTest.cpp
  166       "test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("#include <abc>\n"));
  168                               llvm::MemoryBuffer::getMemBuffer("\n"));
  192       "test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("#include <abc>\n"));
  194                               llvm::MemoryBuffer::getMemBuffer("\n"));
  198                               llvm::MemoryBuffer::getMemBuffer("\n"));
  441       "a.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int main() {}"));
tools/lld/lib/ReaderWriter/FileArchive.cpp
  150     std::unique_ptr<MemoryBuffer> memberMB(MemoryBuffer::getMemBuffer(
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
   32   std::unique_ptr<MemoryBuffer> mb(MemoryBuffer::getMemBuffer(sr, "", false));
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
   30   std::unique_ptr<MemoryBuffer> mb(MemoryBuffer::getMemBuffer(str));
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  221   auto buf = llvm::MemoryBuffer::getMemBuffer(body);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  664       llvm::MemoryBuffer::getMemBuffer(
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp
  152   auto buf = llvm::MemoryBuffer::getMemBuffer(full_source);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.cpp
  122           name, llvm::MemoryBuffer::getMemBuffer(data, name, false));
tools/llvm-objdump/llvm-objdump.cpp
  578     Buffer = MemoryBuffer::getMemBuffer(*LineInfo.Source);
tools/llvm-special-case-list-fuzzer/special-case-list-fuzzer.cpp
   15   std::unique_ptr<llvm::MemoryBuffer> Buf = llvm::MemoryBuffer::getMemBuffer(
tools/sancov/sancov.cpp
  502         MemoryBuffer::getMemBuffer(DefaultBlacklistStr);
unittests/CodeGen/GlobalISel/GISelMITest.h
   76   std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
  187   auto OutputBuf = MemoryBuffer::getMemBuffer(Msg, "Output", false);
  188   auto CheckBuf = MemoryBuffer::getMemBuffer(CheckStr, "");
  195   SM.AddNewSourceBuffer(MemoryBuffer::getMemBuffer(CheckFileText, "CheckFile"),
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 3171       "debug_info", MemoryBuffer::getMemBuffer(StringRef(
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
   87   SrcMgr.AddNewSourceBuffer(MemoryBuffer::getMemBuffer(AsmSrc), SMLoc());
unittests/MI/LiveIntervalTest.cpp
   55   std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
unittests/ProfileData/InstrProfTest.cpp
  998   readProfile(std::move(Profile), llvm::MemoryBuffer::getMemBuffer(R"(
unittests/Support/LineIteratorTest.cpp
   19   std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n"
   44       MemoryBuffer::getMemBuffer("line 1\n"
   73       MemoryBuffer::getMemBuffer("line 1\n"
  109   std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n"
  132   std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n"
  169   std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("");
  175   Buffer = MemoryBuffer::getMemBuffer("\n\n\n");
  179   Buffer = MemoryBuffer::getMemBuffer("# foo\n"
  185   Buffer = MemoryBuffer::getMemBuffer("\n"
unittests/Support/MemoryBufferTest.cpp
   75   OwningBuffer MB1(MemoryBuffer::getMemBuffer(data));
   79   OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false));
   83   OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true));
  268   OwningBuffer MB(MemoryBuffer::getMemBuffer(data));
unittests/Support/SourceMgrTest.cpp
   26         MemoryBuffer::getMemBuffer(Text, BufferName);
unittests/Support/SpecialCaseListTest.cpp
   22     std::unique_ptr<MemoryBuffer> MB = MemoryBuffer::getMemBuffer(List);
unittests/Support/SymbolRemappingReaderTest.cpp
   22     Buffer = MemoryBuffer::getMemBuffer(Text, BufferName);
   29     Buffer = MemoryBuffer::getMemBuffer(Text, BufferName);
unittests/Support/VirtualFileSystemTest.cpp
  904   Base->addFile("/a", 0, MemoryBuffer::getMemBuffer("test"));
  964   FS.addFile("c:/windows/system128/foo.cpp", 0, MemoryBuffer::getMemBuffer(""));
  971   FS.addFile("d:/windows/foo.cpp", 0, MemoryBuffer::getMemBuffer(""));
  977   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
  978   NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
  991   auto Buf = MemoryBuffer::getMemBuffer("a");
  999   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
 1000   FS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c"));
 1001   FS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d"));
 1002   NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
 1003   NormalizedFS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c"));
 1004   NormalizedFS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d"));
 1026   ASSERT_TRUE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")));
 1027   ASSERT_FALSE(FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("a")));
 1028   ASSERT_TRUE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")));
 1029   ASSERT_FALSE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("b")));
 1033   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer(""));
 1034   FS.addFile("/b/c", 0, MemoryBuffer::getMemBuffer(""));
 1059   FS.addFile("c", 0, MemoryBuffer::getMemBuffer(""));
 1080   FS.addFile("c", 0, MemoryBuffer::getMemBuffer(""));
 1114   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), 0xFEEDFACE);
 1131   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, 0xDABBAD00);
 1148   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, None,
 1163   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, None, None,
 1185   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer(""), /*User=*/None,
 1187   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("abc"), /*User=*/None,
 1200   NormalizedFS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"),
 1233   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1246   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target file"));
 1262   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1263   FS.addFile(Link, 0, MemoryBuffer::getMemBuffer("content of link"));
 1270   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1279   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1281   EXPECT_TRUE(FS.addFile(Link, 0, MemoryBuffer::getMemBuffer(Content)));
 1289   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1291   EXPECT_FALSE(FS.addFile(Link, 0, MemoryBuffer::getMemBuffer(LinkContent)));
 1299   EXPECT_TRUE(FS.addFile(File, 0, MemoryBuffer::getMemBuffer(Content)));
 1307   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1313   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer(CommonContent));
 1314   FS.addFile("/c/d", 0, MemoryBuffer::getMemBuffer(CommonContent));
 1320   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("content string"));
 1348     std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer(Content);
unittests/Support/YAMLIOTest.cpp
  248   auto Buffer = llvm::MemoryBuffer::getMemBuffer("{ x: 42 }", "foo.yaml");
unittests/Support/YAMLParserTest.cpp
  256       MemoryBuffer::getMemBuffer("[]", "buffername.yaml");
unittests/Target/AArch64/InstSizes.cpp
   57   std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRString);
unittests/Target/WebAssembly/WebAssemblyExceptionInfoTest.cpp
   47   std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
unittests/Target/X86/MachineSizeOptsTest.cpp
   69         MemoryBuffer::getMemBuffer(MIRString);
utils/FileCheck/FileCheck.cpp
  601   SM.AddNewSourceBuffer(MemoryBuffer::getMemBuffer(
  627   SM.AddNewSourceBuffer(MemoryBuffer::getMemBuffer(