[llvm] c2fd63c - [NFC][MemProf] Add the LLVM license text and minor clean up. (#140504)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May 19 16:24:12 PDT 2025
    
    
  
Author: Snehasish Kumar
Date: 2025-05-19T16:24:09-07:00
New Revision: c2fd63c32ccbf466e4848149d1d050056370d5a9
URL: https://github.com/llvm/llvm-project/commit/c2fd63c32ccbf466e4848149d1d050056370d5a9
DIFF: https://github.com/llvm/llvm-project/commit/c2fd63c32ccbf466e4848149d1d050056370d5a9.diff
LOG: [NFC][MemProf] Add the LLVM license text and minor clean up. (#140504)
Part of a larger refactoring with the following goals
1. Reduce the size of MemProf.h 
2. Avoid including ModuleSummaryIndex just for a couple of types
Added: 
    
Modified: 
    llvm/include/llvm/ProfileData/MemProf.h
Removed: 
    
################################################################################
diff  --git a/llvm/include/llvm/ProfileData/MemProf.h b/llvm/include/llvm/ProfileData/MemProf.h
index ce5cd5ee4856b..683193aa42747 100644
--- a/llvm/include/llvm/ProfileData/MemProf.h
+++ b/llvm/include/llvm/ProfileData/MemProf.h
@@ -1,5 +1,18 @@
-#ifndef LLVM_PROFILEDATA_MEMPROF_H_
-#define LLVM_PROFILEDATA_MEMPROF_H_
+//===- MemProf.h - MemProf support ------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains common definitions used in the reading and writing of
+// memory profile data.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_PROFILEDATA_MEMPROF_H
+#define LLVM_PROFILEDATA_MEMPROF_H
 
 #include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/MapVector.h"
@@ -844,5 +857,4 @@ struct LineLocation {
 using CallEdgeTy = std::pair<LineLocation, uint64_t>;
 } // namespace memprof
 } // namespace llvm
-
-#endif // LLVM_PROFILEDATA_MEMPROF_H_
+#endif // LLVM_PROFILEDATA_MEMPROF_H
        
    
    
More information about the llvm-commits
mailing list