mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
common: Decouple LLVM hashing dependencies from common/hashing.h (#7646)
- Move formatted printing to `hashing.cpp` instead of `hashing.h` - Separate APInt and APFloat hashing specializations into a new `hashing_llvm.h` - Update toolchain/base dependencies and include sites that hash LLVM data types to include `hashing_llvm.h` Combined, this reduces the transitive includes caused by `hashing.h`. Assisted-by: Antigravity with Gemini
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "common/hashing_llvm.h"
|
||||
#include "common/raw_string_ostream.h"
|
||||
#include "llvm/ADT/Sequence.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
|
||||
Reference in New Issue
Block a user