aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Bitcode/BitReaderTest.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-01-13 01:15:39 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-01-13 01:15:39 +0000
commita6505ca4c2225828277fc9fba85dab5e477bd6d1 (patch)
tree6a3a9e187db3133800133b7513ad05175b397fd1 /llvm/unittests/Bitcode/BitReaderTest.cpp
parent0e224700de149454a3095561c2ebe0bb75624395 (diff)
downloadllvm-a6505ca4c2225828277fc9fba85dab5e477bd6d1.zip
llvm-a6505ca4c2225828277fc9fba85dab5e477bd6d1.tar.gz
llvm-a6505ca4c2225828277fc9fba85dab5e477bd6d1.tar.bz2
correct target directive handling error handling
The target specific parser should return `false' if the target AsmParser handles the directive, and `true' if the generic parser should handle the directive. Many of the target specific directive handlers would `return Error' which does not follow these semantics. This change simply changes the target specific routines to conform to the semantis of the ParseDirective correctly. Conformance to the semantics improves diagnostics emitted for the invalid directives. X86 is taken as a sample to ensure that multiple diagnostics are not presented for a single error. llvm-svn: 199068
Diffstat (limited to 'llvm/unittests/Bitcode/BitReaderTest.cpp')
0 files changed, 0 insertions, 0 deletions