X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..1610a3a014ca193868cd6ed987728201c15b423c:/src/mc/ObjectInformation.hpp diff --git a/src/mc/ObjectInformation.hpp b/src/mc/ObjectInformation.hpp index c9249a0fb4..e813af7333 100644 --- a/src/mc/ObjectInformation.hpp +++ b/src/mc/ObjectInformation.hpp @@ -12,12 +12,10 @@ #include #include -#include "xbt/base.h" - -#include "src/xbt/memory_map.hpp" -#include "src/mc/mc_forward.hpp" -#include "src/mc/Type.hpp" #include "src/mc/Frame.hpp" +#include "src/mc/Type.hpp" +#include "src/mc/mc_forward.hpp" +#include "src/xbt/memory_map.hpp" #include "src/smpi/include/private.hpp" @@ -92,8 +90,7 @@ public: */ std::vector functions_index; - // TODO, remove the mutable (to remove it we'll have to add a lot of const everywhere) - mutable std::vector global_variables; + std::vector global_variables; /** Types indexed by DWARF ID */ std::unordered_map types; @@ -144,7 +141,7 @@ public: * @param name scopes name of the global variable (`myproject::Foo::count`) * @return corresponding variable (if any) or nullptr */ - simgrid::mc::Variable* find_variable(const char* name) const; + const simgrid::mc::Variable* find_variable(const char* name) const; /** Remove a global variable (in order to ignore it) *