We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39730db + cbc9e9b commit 59c5e82Copy full SHA for 59c5e82
src/ATTParser.hs
@@ -99,7 +99,11 @@ preprocess ('\t':attr) = let (h, t) = break isSpace attr
99
-- ia64
100
("stringz":x:_) -> [mkAscii $ read x ++ "\0"]
101
_ -> []
102
- where w = head . words
+ where
103
+ w x = case words x of
104
+ [] -> error $ "preprocess: expected some non-space characters, "
105
+ ++ "but got spaces only in '" ++ x ++ "'"
106
+ hd : _ -> hd
107
preprocess ('.':'z':'e':'r':'o':'f':'i':'l':'l':' ':x) = case words' (==',') x of
108
(_seg:_sect:sym:size:_) | size == "4" -> [Ident sym, mkLong 0]
109
| size == "8" -> [Ident sym, mkQuad 0]
0 commit comments