Skip to content

Commit

Permalink
Merge branch 'Clang-16-Upgrade_2' of github.com:ragusaa/clamav-byteco…
Browse files Browse the repository at this point in the history
…de-compiler into Clang-16-Upgrade_2
  • Loading branch information
ragusaa committed Feb 2, 2024
2 parents 2c43da5 + c37f725 commit 30353a8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
1 change: 0 additions & 1 deletion examples/LegacyPassManager/HelloWorld/HelloWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"

//#include "Common/clambc.h"
using namespace llvm;

namespace
Expand Down
3 changes: 0 additions & 3 deletions examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
* MA 02110-1301, USA.
*/

//#include "Common/clambc.h"
//#include "Common/ClamBCUtilities.h"

#include <llvm/IR/Module.h>
#include <llvm/IR/Instructions.h>
#include <llvm/Support/raw_ostream.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/PassManager/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright (C) 2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.

# Copyright (C) 2021-2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.

add_subdirectory(AnalysisPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ using namespace std;
namespace
{
/*
* Freeze Instructions are to guarantee sane behaviour in the case of undefs or poison values. The interpreter
* has no notion of freeze instructions, so we are removing them. The verifier will fail if there are undef or
* poison values in the IR, so this is safe to do.
*/
* Freeze Instructions are to guarantee sane behaviour in the case of undefs or poison values. The interpreter
* has no notion of freeze instructions, so we are removing them. The verifier will fail if there are undef or
* poison values in the IR, so this is safe to do.
*/
struct ClamBCRemoveFreezeInsts : public PassInfoMixin<ClamBCRemoveFreezeInsts> {
protected:
Module *pMod = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ using namespace std;
namespace
{
/*
* Remove usub intrinsic because it's not supported by our runtime.
*/
* Remove usub intrinsic because it's not supported by our runtime.
*/
struct ClamBCRemoveUSUB : public PassInfoMixin<ClamBCRemoveUSUB> {
protected:
Module *pMod = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ using namespace std;
namespace
{
/*
* Remove smin intrinsic because it's not supported by our runtime.
*/
* Remove smin intrinsic because it's not supported by our runtime.
*/
struct ClamBCRemoveUnsupportedICMPIntrinsics : public PassInfoMixin<ClamBCRemoveUnsupportedICMPIntrinsics> {
protected:
Module *pMod = nullptr;
Expand Down

0 comments on commit 30353a8

Please sign in to comment.