From 7bcfe7df59f6076a4dc1e2e10fbefc62980bc26e Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Wed, 28 Jun 2023 15:50:08 -0700 Subject: [PATCH] LLVM should be included using quotes. (#2952) This also results in correct dependency discovery (the missing LLVM dep on expression_category). --- explorer/ast/BUILD | 1 + explorer/ast/expression_category.h | 2 +- explorer/interpreter/interpreter.cpp | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer/ast/BUILD b/explorer/ast/BUILD index 0573410a31e1..0fecb13ec634 100644 --- a/explorer/ast/BUILD +++ b/explorer/ast/BUILD @@ -157,4 +157,5 @@ cc_library( cc_library( name = "expression_category", hdrs = ["expression_category.h"], + deps = ["@llvm-project//llvm:Support"], ) diff --git a/explorer/ast/expression_category.h b/explorer/ast/expression_category.h index 8cb6011dda89..0c21499ffb9f 100644 --- a/explorer/ast/expression_category.h +++ b/explorer/ast/expression_category.h @@ -5,7 +5,7 @@ #ifndef CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_ #define CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_ -#include +#include "llvm/ADT/StringRef.h" namespace Carbon { diff --git a/explorer/interpreter/interpreter.cpp b/explorer/interpreter/interpreter.cpp index e810fe0248b8..77f101e72046 100644 --- a/explorer/interpreter/interpreter.cpp +++ b/explorer/interpreter/interpreter.cpp @@ -4,8 +4,6 @@ #include "explorer/interpreter/interpreter.h" -#include - #include #include #include @@ -34,6 +32,7 @@ #include "llvm/Support/Casting.h" #include "llvm/Support/Error.h" #include "llvm/Support/FormatVariadic.h" +#include "llvm/Support/raw_ostream.h" using llvm::cast; using llvm::dyn_cast;