[llvm] a560d21 - [unittests] Add missing includes (#65681)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 8 12:10:41 PDT 2023


Author: Zero Omega
Date: 2023-09-08T12:10:37-07:00
New Revision: a560d219dbecbd3489c5ab25ee0cfeb3fb761bc3

URL: https://github.com/llvm/llvm-project/commit/a560d219dbecbd3489c5ab25ee0cfeb3fb761bc3
DIFF: https://github.com/llvm/llvm-project/commit/a560d219dbecbd3489c5ab25ee0cfeb3fb761bc3.diff

LOG: [unittests] Add missing includes (#65681)

There are missing include and using in TextStubTests and
AsmPrinterDwarfTest and they causes build failures when using vanilla
GoogleTest v1.14.0. This patch fixes this issue.

Added: 
    

Modified: 
    llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
    llvm/unittests/TextAPI/TextStubHelpers.h

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp b/llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
index b900e34fdd634d0..32319f1e97587f2 100644
--- a/llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
+++ b/llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
@@ -20,6 +20,7 @@
 
 using namespace llvm;
 using testing::_;
+using testing::DoAll;
 using testing::InSequence;
 using testing::SaveArg;
 

diff  --git a/llvm/unittests/TextAPI/TextStubHelpers.h b/llvm/unittests/TextAPI/TextStubHelpers.h
index f3303da3b951b09..f8409b10912c34b 100644
--- a/llvm/unittests/TextAPI/TextStubHelpers.h
+++ b/llvm/unittests/TextAPI/TextStubHelpers.h
@@ -6,6 +6,7 @@
 //
 //===-----------------------------------------------------------------------===/
 
+#include "llvm/ADT/SmallString.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/TextAPI/InterfaceFile.h"
 #include <algorithm>


        


More information about the llvm-commits mailing list