Просмотр исходного кода

LLVM should be included using quotes. (#2952)

This also results in correct dependency discovery (the missing LLVM dep on expression_category).
Jon Ross-Perkins 2 лет назад
Родитель
Сommit
7bcfe7df59
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 0
      explorer/ast/BUILD
  2. 1 1
      explorer/ast/expression_category.h
  3. 1 2
      explorer/interpreter/interpreter.cpp

+ 1 - 0
explorer/ast/BUILD

@@ -157,4 +157,5 @@ cc_library(
 cc_library(
     name = "expression_category",
     hdrs = ["expression_category.h"],
+    deps = ["@llvm-project//llvm:Support"],
 )

+ 1 - 1
explorer/ast/expression_category.h

@@ -5,7 +5,7 @@
 #ifndef CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_
 #define CARBON_EXPLORER_AST_EXPRESSION_CATEGORY_H_
 
-#include <llvm/ADT/StringRef.h>
+#include "llvm/ADT/StringRef.h"
 
 namespace Carbon {
 

+ 1 - 2
explorer/interpreter/interpreter.cpp

@@ -4,8 +4,6 @@
 
 #include "explorer/interpreter/interpreter.h"
 
-#include <llvm/Support/raw_ostream.h>
-
 #include <iterator>
 #include <limits>
 #include <map>
@@ -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;