diff options
author | Dimitry Andric <dimitry@andric.com> | 2023-12-20 20:07:56 +0100 |
---|---|---|
committer | Dimitry Andric <dimitry@andric.com> | 2023-12-20 20:09:39 +0100 |
commit | 2c27013fa918211816d24c9d2530469fd822bc00 (patch) | |
tree | f1fbb4e0914b28185d203161761d3637669dae26 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 5c1a41f8ad0c02a24345efb4adc424396b7e446b (diff) | |
download | llvm-2c27013fa918211816d24c9d2530469fd822bc00.zip llvm-2c27013fa918211816d24c9d2530469fd822bc00.tar.gz llvm-2c27013fa918211816d24c9d2530469fd822bc00.tar.bz2 |
[clang] Add getClangVendor() and use it in CodeGenModule.cpp (#75935)
In 9a38a72f1d482 `ProductId` was assigned from the stringified value of
`CLANG_VENDOR`, if that macro was defined. However, `CLANG_VENDOR` is
supposed to be a string, as it is defined (optionally) as such in the
top-level clang `CMakeLists.txt`.
Furthermore, `CLANG_VENDOR` is only passed as a build-time define when
compiling `Version.cpp`, so add a `getClangVendor()` function to
`Version.h`, and use it in `CodegGenModule.cpp`, instead of relying on
the macro.
Fixes: 9a38a72f1d482
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions