Skip to content

Commit

Permalink
Merge pull request #264 from GaloisInc/disasm_test_cpp
Browse files Browse the repository at this point in the history
Update disasm-test to check for .cc or .cpp inputs.
  • Loading branch information
kquick authored Jan 2, 2024
2 parents 8901a9e + c509cce commit 39b4a5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disasm-test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ descr = PP.vcat $
|]
, ""
, block [iii|
The compiler test method starts with a known .c file and uses clang to directly
The compiler test method starts with a known .c or .cpp file and uses clang to directly
generate a bitcode file. The test then proceeds just as with the assembler
test. The only difference therefore is the starting file and first command
used on that file, but the compiler method will usually generate more variance
Expand All @@ -90,7 +90,7 @@ descr = PP.vcat $
, " .ll --[llvm-as]--> .bc ---[llvm-dis]--> .ll |"
, " ^ `-[llvm-disasm]---> .ll"
, " | `-> .AST"
, " .c --[clang]--------+ |"
, " .c/.cpp --[clang]---+ |"
, " | [show]"
, " .bc -[pre-existing]-+ |"
, " v"
Expand Down Expand Up @@ -532,7 +532,7 @@ parseBC pfx bc = do

cCompilerCube :: VersionCheck -> TS.CUBE
cCompilerCube llvmver = (assemblyCube llvmver)
{ TS.rootName = "*.c"
{ TS.rootName = "*.(c|cc|cpp)"
, TS.sweetAdjuster = rangeMatch llvmver
}

Expand Down

0 comments on commit 39b4a5f

Please sign in to comment.