diff options
author | Charles Davis <cdavis@mines.edu> | 2010-10-25 15:37:09 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-10-25 15:37:09 +0000 |
commit | 22fe18625de76e06edbd0c329949cb064dddf1ff (patch) | |
tree | 170e6e647323de12fa43997a0c10509f17cd04b6 /llvm/lib/AsmParser/LLParser.cpp | |
parent | b0f4757fe648e0149d64767079927837c7b5dc3c (diff) | |
download | bcm5719-llvm-22fe18625de76e06edbd0c329949cb064dddf1ff.tar.gz bcm5719-llvm-22fe18625de76e06edbd0c329949cb064dddf1ff.zip |
Add a new 'hotpatch' attribute. This attribute will insert a two-byte no-op
instruction at the beginning of each function that has the attribute, allowing
the function to be easily hooked and/or patched.
llvm-svn: 117264
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 4d3bd879320..a1f70fb0249 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -982,6 +982,7 @@ bool LLParser::ParseOptionalAttrs(unsigned &Attrs, unsigned AttrKind) { case lltok::kw_noredzone: Attrs |= Attribute::NoRedZone; break; case lltok::kw_noimplicitfloat: Attrs |= Attribute::NoImplicitFloat; break; case lltok::kw_naked: Attrs |= Attribute::Naked; break; + case lltok::kw_hotpatch: Attrs |= Attribute::Hotpatch; break; case lltok::kw_alignstack: { unsigned Alignment; |