summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen/HPMHookGen.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/HPMHookGen/HPMHookGen.pl')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index 9c0660300..a2e0698d3 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -21,11 +21,7 @@ sub trim($) {
sub parse($$) {
my ($p, $d) = @_;
-
- # Strip gcc attributes
- $p =~ s/\s*__attribute__\s*\(\(.*$//;
- $d =~ s/\s*__attribute__\s*\(\(.*$//;
-
+
$p =~ s/^.*?\)\((.*)\).*$/$1/; # Clean up extra parentheses )(around the arglist)
# Retrieve return type