Skip to content

Commit

Permalink
[MemProf][compiler-rt] Add a test to ensure include files do not diverge
Browse files Browse the repository at this point in the history
Memprof has two include files that are duplicated between LLVM and
compiler-rt. They need to stay in sync to ensure correct functionality,
but the comments can be somewhat easy to miss, which causes fixups like
839ed1b to be needed. This patch adds a
test to ensure that the files are the same between LLVM and compiler-rt
to catch this ideally before commit, but if not, soon afterwards.
  • Loading branch information
boomanaiden154 committed Jul 4, 2024
1 parent 839ed1b commit a2abe5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler-rt/test/profile/check-same-common-code.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;
; NOTE: if this test fails, please make sure the relevant copies are identical
; copies of each other.
;
; RUN: diff %crt_src/include/profile/MIBEntryDef.inc %llvm_src/include/llvm/ProfileData/MIBEntryDef.inc
; RUN: diff %crt_src/include/profile/MemProfData.inc %llvm_src/include/llvm/ProfileData/MemProfData.inc

0 comments on commit a2abe5e

Please sign in to comment.